summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/util.h
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-02-13 21:10:45 +0000
committerjmg <jmg@FreeBSD.org>1997-02-13 21:10:45 +0000
commitfddb79c0af0d4bf9176b52713c0df1c2bafe48e5 (patch)
tree3913a51d4c09be4a013b66307b63291d4e50768a /gnu/usr.bin/patch/util.h
parent8f1bd632d4528e09dc9ca0ed45397ded3364d354 (diff)
downloadFreeBSD-src-fddb79c0af0d4bf9176b52713c0df1c2bafe48e5.zip
FreeBSD-src-fddb79c0af0d4bf9176b52713c0df1c2bafe48e5.tar.gz
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 input is known to come from a file or terminal, or it will return 0 when ther was a read error. Modified the question "Skip patch?" so that on an error from ask it will skip the patch instead of looping. Closes PR#777 2.2 candidate
Diffstat (limited to 'gnu/usr.bin/patch/util.h')
-rw-r--r--gnu/usr.bin/patch/util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/patch/util.h b/gnu/usr.bin/patch/util.h
index c56b4c3..4260928 100644
--- a/gnu/usr.bin/patch/util.h
+++ b/gnu/usr.bin/patch/util.h
@@ -1,6 +1,9 @@
-/* $Header: /home/ncvs/src/gnu/usr.bin/patch/util.h,v 1.1.1.1 1993/06/19 14:21:52 paul Exp $
+/* $Header: /usr/cvs/src/gnu/usr.bin/patch/util.h,v 1.2 1995/05/30 05:02:38 rgrimes Exp $
*
* $Log: util.h,v $
+ * Revision 1.2 1995/05/30 05:02:38 rgrimes
+ * Remove trailing whitespace.
+ *
* Revision 1.1.1.1 1993/06/19 14:21:52 paul
* b-maked patch-2.10
*
@@ -83,7 +86,7 @@ void copy_file();
void say();
void fatal();
void pfatal();
-void ask();
+int ask();
char *savestr();
void set_signals();
void ignore_signals();
OpenPOWER on IntegriCloud