Blame SOURCES/ncompress-4.2.4.4-exit-code-ignored.patch
|
|
db0607 |
From 14d486afed1a1c5ef5ad14f92e52537e6aa68aad Mon Sep 17 00:00:00 2001
|
|
|
db0607 |
From: Ondrej Dubaj <odubaj@redhat.com>
|
|
|
db0607 |
Date: Wed, 6 May 2020 13:23:42 +0200
|
|
|
db0607 |
Subject: [PATCH] Do not set exit_code when an error is ignored
|
|
|
db0607 |
|
|
|
db0607 |
---
|
|
|
db0607 |
compress42.c | 5 -----
|
|
|
db0607 |
1 file changed, 5 deletions(-)
|
|
|
db0607 |
|
|
|
db0607 |
diff --git a/compress42.c b/compress42.c
|
|
|
db0607 |
index 834c2f2..3dd3d19 100644
|
|
|
db0607 |
--- a/compress42.c
|
|
|
db0607 |
+++ b/compress42.c
|
|
|
db0607 |
@@ -1193,7 +1193,6 @@ comprexx(fileptr)
|
|
|
db0607 |
{
|
|
|
db0607 |
fprintf(stderr, "\nunlink error (ignored) ");
|
|
|
db0607 |
perror(ofname);
|
|
|
db0607 |
- exit_code = 1;
|
|
|
db0607 |
}
|
|
|
db0607 |
|
|
|
db0607 |
remove_ofname = 0;
|
|
|
db0607 |
@@ -1241,7 +1240,6 @@ comprexx(fileptr)
|
|
|
db0607 |
{
|
|
|
db0607 |
fprintf(stderr, "\nutime error (ignored) ");
|
|
|
db0607 |
perror(ofname);
|
|
|
db0607 |
- exit_code = 1;
|
|
|
db0607 |
}
|
|
|
db0607 |
|
|
|
db0607 |
#ifndef AMIGA
|
|
|
db0607 |
@@ -1249,14 +1247,12 @@ comprexx(fileptr)
|
|
|
db0607 |
{
|
|
|
db0607 |
fprintf(stderr, "\nchmod error (ignored) ");
|
|
|
db0607 |
perror(ofname);
|
|
|
db0607 |
- exit_code = 1;
|
|
|
db0607 |
}
|
|
|
db0607 |
#ifndef DOS
|
|
|
db0607 |
if (chown(ofname, infstat.st_uid, infstat.st_gid)) /* Copy ownership */
|
|
|
db0607 |
{
|
|
|
db0607 |
fprintf(stderr, "\nchown error (ignored) ");
|
|
|
db0607 |
perror(ofname);
|
|
|
db0607 |
- exit_code = 1;
|
|
|
db0607 |
}
|
|
|
db0607 |
#endif
|
|
|
db0607 |
#endif
|
|
|
db0607 |
@@ -1266,7 +1262,6 @@ comprexx(fileptr)
|
|
|
db0607 |
{
|
|
|
db0607 |
fprintf(stderr, "\nunlink error (ignored) ");
|
|
|
db0607 |
perror(ifname);
|
|
|
db0607 |
- exit_code = 1;
|
|
|
db0607 |
}
|
|
|
db0607 |
}
|
|
|
db0607 |
}
|
|
|
db0607 |
--
|
|
|
db0607 |
2.24.1
|
|
|
db0607 |
|