File: fix.fatal.exits.mt.576637.patch

package info (click to toggle)
cpio 2.11%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,456 kB
  • sloc: ansic: 9,095; sh: 6,943; yacc: 1,219; makefile: 241; sed: 16
file content (37 lines) | stat: -rw-r--r-- 832 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Return MT_EXIT_FAILURE instead of MT_EXIT_INVOP for fatal exits from mt.

Index: cpio-2.11+dfsg/src/Makefile.am
===================================================================
--- cpio-2.11+dfsg.orig/src/Makefile.am
+++ cpio-2.11+dfsg/src/Makefile.am
@@ -38,6 +38,8 @@ cpio_SOURCES = \
  makepath.c\
  userspec.c
 
+mt_SOURCES = mt.c
+
 noinst_HEADERS =\
  cpio.h\
  cpiohdr.h\
Index: cpio-2.11+dfsg/src/mt.c
===================================================================
--- cpio-2.11+dfsg.orig/src/mt.c
+++ cpio-2.11+dfsg/src/mt.c
@@ -55,6 +55,8 @@
 
    David MacKenzie <djm@gnu.ai.mit.edu> */
 
+#include "configmake.h"
+
 #include <system.h>
 
 #include <stdio.h>
@@ -308,7 +310,7 @@ print_status (char *dev, int desc)
 void
 fatal_exit ()
 {
-  exit (MT_EXIT_INVOP);
+  exit (MT_EXIT_FAILURE);
 }
 
 int