diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-01-03 23:42:56 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-01-03 23:42:56 +0000 |
commit | 1f374e009ff928093710d0abb3a9d5785cf4966f (patch) | |
tree | b6f415d87b1b5dbfe6cb9b52388088313d112a90 /gnu | |
parent | 857f817c5c07a22e50cf21b94ab66294c1b52b84 (diff) | |
download | src-1f374e009ff928093710d0abb3a9d5785cf4966f.tar.gz src-1f374e009ff928093710d0abb3a9d5785cf4966f.zip |
Back out Index over +++/--- precedence.
It maybe right, if patch was FreeBSD-own program, but it break compatibility
with pre-existent patches in other systems.
The example is big ncurses patch which don't apply on FreeBSD
due to "fixed" precedence.
Notes
Notes:
svn path=/head/; revision=32224
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/patch/pch.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/usr.bin/patch/pch.c b/gnu/usr.bin/patch/pch.c index 439b51c57ed1..dbd3a6b12682 100644 --- a/gnu/usr.bin/patch/pch.c +++ b/gnu/usr.bin/patch/pch.c @@ -1,6 +1,9 @@ -/* $Header: /home/ncvs/src/gnu/usr.bin/patch/pch.c,v 1.9 1997/02/13 21:10:43 jmg Exp $ +/* $Header: /home/ncvs/src/gnu/usr.bin/patch/pch.c,v 1.10 1997/10/23 02:44:22 ache Exp $ * * $Log: pch.c,v $ + * Revision 1.10 1997/10/23 02:44:22 ache + * Add (unsigned char) cast to ctype macros + * * Revision 1.9 1997/02/13 21:10:43 jmg * Fix a problem with patch in that is will always default, even when the * controlling terminal is closed. Now the function ask() will return 1 when th @@ -16,6 +19,9 @@ * * Revision 1.8 1996/04/12 11:37:32 markm * Attempt to break a $Log: pch.c,v $ + * Attempt to break a Revision 1.10 1997/10/23 02:44:22 ache + * Attempt to break a Add (unsigned char) cast to ctype macros + * Attempt to break a * Attempt to break a Revision 1.9 1997/02/13 21:10:43 jmg * Attempt to break a Fix a problem with patch in that is will always default, even when the * Attempt to break a controlling terminal is closed. Now the function ask() will return 1 when th @@ -405,14 +411,13 @@ intuit_diff_type() oldname = fetchname(oldtmp, strippath, ok_to_create_file); if (newtmp != Nullch) newname = fetchname(newtmp, strippath, ok_to_create_file); - if (indname) - filearg[0] = savestr(indname); - else if (oldname && newname) { + if (oldname && newname) { if (strlen(oldname) < strlen(newname)) filearg[0] = savestr(oldname); else filearg[0] = savestr(newname); - } + } else if (indname) + filearg[0] = savestr(indname); else if (oldname) filearg[0] = savestr(oldname); else if (newname) |