]> git.pld-linux.org Git - packages/cpio.git/commitdiff
- this way doesn't work any longer
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 9 Jan 2005 15:22:37 +0000 (15:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpio-errorcode.patch -> 1.2

cpio-errorcode.patch [deleted file]

diff --git a/cpio-errorcode.patch b/cpio-errorcode.patch
deleted file mode 100644 (file)
index b79c17d..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
---- cpio-2.4.2/main.c.error    Sat Jun 24 10:29:07 2000
-+++ cpio-2.4.2/main.c  Sat Jun 24 10:29:07 2000
-@@ -518,5 +518,5 @@ main (argc, argv)
-   if (archive_des >= 0 && rmtclose (archive_des) == -1)
-     error (1, errno, "error closing archive");
--  exit (0);
-+  exit (error_count != 0);
- }
---- cpio-2.4.2/extern.h.error  Wed Nov 30 14:48:28 1994
-+++ cpio-2.4.2/extern.h        Sat Jun 24 10:29:07 2000
-@@ -84,6 +84,8 @@ extern int f_force_local;
- extern char *program_name;
- extern int (*xstat) ();
- extern void (*copy_function) ();
-+
-+extern unsigned int error_count;
\f
- #if __STDC__ || defined(__MSDOS__)
- # define P_(s) s
---- cpio-2.4.2/error.c.error   Tue Dec  5 15:39:52 1995
-+++ cpio-2.4.2/error.c Sat Jun 24 10:26:42 2000
-@@ -46,6 +46,10 @@ void exit ();
- /* This variable is incremented each time `error' is called.  */
- unsigned int error_message_count;
-+/* This variable is incremented each time `error' is called and
-+   errnum is not zero.  */
-+unsigned int error_count;
-+
- /* If NULL, error will flush stdout, then print on stderr the program
-    name, a colon and a space.  Otherwise, error will call this
-    function without parameters instead.  */
-@@ -122,7 +126,10 @@ error (status, errnum, message, va_alist
-   ++error_message_count;
-   if (errnum)
--    fprintf (stderr, ": %s", strerror (errnum));
-+    {
-+      fprintf (stderr, ": %s", strerror (errnum));
-+      error_count++;
-+    }
-   putc ('\n', stderr);
-   fflush (stderr);
-   if (status)
-
-
This page took 0.201684 seconds and 4 git commands to generate.