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