login
Header Space

 
 

Re: [PATCH] Fix off by one error in prep_exclude.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <git@...>, <j.sixt@...>, <gitster@...>
Date: Sunday, January 27, 2008 - 5:15 pm

On Sun, Jan 27, 2008 at 08:44:57PM +0000, Johannes Schindelin wrote:
 
Sorry I should have been more explicit Johannes Sixt reported the issue,
you were included simply because you had been involved in the thread.


As far as I can see there are two protential cases that could trigger
this bug, but there may be more.  This first was the arguably invalid
case the Johannes Sixt reported.

git clean -n /

The other case that could trigger this bug and potentially others is if
someone makes their root dircetory a git repository and then uses "/" as
an absolute path.  For example:

cd /
git init
git clean -n /

You may argue that both of these cases are invalid and that is fine by
me, but since I noticed this bug I thought I would send a patch.  If you
wouldlike I can add these two use cases to the commit message.

--
Shawn
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-clean buglet, Johannes Sixt, (Wed Jan 23, 11:14 am)
Re: git-clean buglet, Johannes Schindelin, (Wed Jan 23, 11:29 am)
Re: git-clean buglet, Johannes Sixt, (Wed Jan 23, 11:40 am)
[PATCH] Fix off by one error in prep_exclude., Shawn Bohrer, (Sun Jan 27, 3:55 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Johannes Schindelin, (Sun Jan 27, 4:44 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Junio C Hamano, (Sun Jan 27, 6:34 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Shawn Bohrer, (Sun Jan 27, 8:34 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Junio C Hamano, (Sun Jan 27, 10:52 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Johannes Sixt, (Mon Jan 28, 3:12 am)
Re: [PATCH] Fix off by one error in prep_exclude., Junio C Hamano, (Mon Jan 28, 4:46 am)
Re: [PATCH] Fix off by one error in prep_exclude., Johannes Sixt, (Mon Jan 28, 5:05 am)
[RFH/PATCH] prefix_path(): disallow absolute paths, Johannes Schindelin, (Mon Jan 28, 8:33 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Mon Jan 28, 9:23 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, しらいしななこ, (Tue Jan 29, 5:53 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Tue Jan 29, 8:43 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Johannes Sixt, (Tue Jan 29, 3:20 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Tue Jan 29, 3:28 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Johannes Sixt, (Tue Jan 29, 3:43 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Tue Jan 29, 4:31 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Johannes Schindelin, (Mon Jan 28, 10:37 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Mon Jan 28, 10:45 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Johannes Schindelin, (Mon Jan 28, 10:59 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Mon Jan 28, 10:03 pm)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Tue Jan 29, 3:02 am)
[PATCH] More test cases for sanitized path names, Robin Rosenberg, (Fri Feb 1, 12:34 am)
Re: [PATCH] More test cases for sanitized path names, Junio C Hamano, (Fri Feb 1, 3:17 am)
[PATCH for post 1.5.4] Sane use of test_expect_failure, Junio C Hamano, (Fri Feb 1, 5:50 am)
Re: [PATCH] Sane use of test_expect_failure, Junio C Hamano, (Sat Feb 2, 6:06 am)
Re: [PATCH] More test cases for sanitized path names, Robin Rosenberg, (Fri Feb 1, 5:10 am)
Re: [PATCH] More test cases for sanitized path names, Junio C Hamano, (Fri Feb 1, 6:22 am)
Re: [PATCH] More test cases for sanitized path names, Robin Rosenberg, (Fri Feb 1, 10:17 am)
Re: [PATCH] More test cases for sanitized path names, Junio C Hamano, (Fri Feb 1, 1:45 pm)
Re: [PATCH] More test cases for sanitized path names, Junio C Hamano, (Fri Feb 1, 6:51 am)
Re: [PATCH] More test cases for sanitized path names, Junio C Hamano, (Fri Feb 1, 7:10 am)
[PATCH] Make blame accept absolute paths, Robin Rosenberg, (Fri Feb 1, 12:07 am)
Re: [RFH/PATCH] prefix_path(): disallow absolute paths, Junio C Hamano, (Mon Jan 28, 10:03 pm)
[PATCH] prefix_path(): disallow absolute paths, Johannes Schindelin, (Mon Jan 28, 11:05 am)
Re: [PATCH] Fix off by one error in prep_exclude., Junio C Hamano, (Mon Jan 28, 5:22 am)
[PATCH] Fix off by one error in prep_exclude., Shawn Bohrer, (Sun Jan 27, 8:37 pm)
Re: [PATCH] Fix off by one error in prep_exclude., Johannes Schindelin, (Mon Jan 28, 7:59 am)
Re: [PATCH] Fix off by one error in prep_exclude., Junio C Hamano, (Mon Jan 28, 8:04 am)
Re: [PATCH] Fix off by one error in prep_exclude., Shawn Bohrer, (Sun Jan 27, 5:15 pm)
Re: git-clean buglet, Johannes Sixt, (Wed Jan 23, 11:24 am)
speck-geostationary