diff options
author | ache <ache@FreeBSD.org> | 1998-01-03 23:42:56 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-01-03 23:42:56 +0000 |
commit | ec6053240d54d9d36720727d6c4391bfc987f4b0 (patch) | |
tree | 63a8950b0bc8718013ea4c4807fcc69854088da4 | |
parent | 9c31d64ae263f34351c4bdad4f696c97e63a9f7e (diff) | |
download | FreeBSD-src-ec6053240d54d9d36720727d6c4391bfc987f4b0.zip FreeBSD-src-ec6053240d54d9d36720727d6c4391bfc987f4b0.tar.gz |
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.
-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 439b51c..dbd3a6b 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) |