Просмотр исходного кода

libdpkg: Also return an error code for unhandled subprocess status

Guillem Jover лет назад: 11
Родитель
Сommit
b097b5cf5d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      lib/dpkg/subproc.c

+ 3 - 0
lib/dpkg/subproc.c

@@ -151,6 +151,9 @@ subproc_check(int status, const char *desc, enum subproc_flags flags)
 			    desc, strsignal(n),
 			    WCOREDUMP(status) ? _(", core dumped") : "");
 	} else {
+		if (flags & SUBPROC_RETERROR)
+			return -1;
+
 		out(_("subprocess %s failed with wait status code %d"), desc,
 		    status);
 	}