File: 04_fix-return-error-code.patch

package info (click to toggle)
mpack 1.6-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,300 kB
  • sloc: ansic: 8,791; sh: 330; makefile: 25; perl: 25
file content (14 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: munpack should return 1 on errors.
Author: Fabio Augusto De Muzio Tobich <ftobich@gmail.com>
Bug-Debian: https://bugs.debian.org/527555
Last-Update: 2020-05-22
--- mpack-1.6.orig/unixunpk.c
+++ mpack-1.6/unixunpk.c
@@ -90,6 +90,7 @@ int main(int argc, char **argv)
 	file = fopen(argv[optind], "r");
 	if (!file) {
 	    perror(argv[optind]);
+		exit(1);
 	}
 	else {
 	    didchat = 0;