FreeBSD Bugzilla – Attachment 136159 Details for
Bug 181272
patch(1) can't deal with blanks in filenames, GNU patch can
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch.txt
patch.txt (text/plain), 638 bytes, created by
David Carlier
on 2013-08-18 07:17:39 UTC
(
hide
)
Description:
patch.txt
Filename:
MIME Type:
Creator:
David Carlier
Created:
2013-08-18 07:17:39 UTC
Size:
638 bytes
patch
obsolete
>--- util.c.orig 2013-08-17 14:54:44.000000000 +0100 >+++ util.c 2013-08-18 07:13:39.000000000 +0100 >@@ -402,12 +402,16 @@ > name = fullname = t = savestr(at); > > /* Strip off up to `sleading' leading slashes and null terminate. */ >- for (; *t && !isspace((unsigned char)*t); t++) >+ for (; *t && *t!='\t' && *t!='\n'; t++) >+ /* Replace any space by 0x20 */ >+ if (isspace((unsigned char) *t)) >+ if (*(t+1) && (*(t+1) == '\t')) >+ break; >+ *t = 0x20; > if (*t == '/') > if (--sleading >= 0) > name = t + 1; > *t = '\0'; >- > /* > * If no -p option was given (957 is the default value!), > * we were given a relative pathname,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 181272
: 136159 |
136160