]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
all_syscalls: don't warn during cleanup
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 Apr 2024 07:14:28 +0000 (09:14 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 18 Apr 2024 07:58:23 +0000 (09:58 +0200)
On failure the output files may not have been created.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 4d5441ec53337edae2b9f7deef0e21d700c06b4d)

tools/all_syscalls

index c8a56155b7f647105bd9ebd573302b3f479a6dde..f2f91b3aefbf06701b6af23b5a9cfc90caf796ff 100755 (executable)
@@ -8,7 +8,7 @@ SYSCALL_INCLUDES="
 #include <sys/syscall.h>
 "
 
-trap 'rm $OUTPUT $OUTPUT.deps' ERR
+trap 'rm -f $OUTPUT $OUTPUT.deps' ERR
 
 "$@" -MD -MF "$OUTPUT.deps" <<< "$SYSCALL_INCLUDES" -dM -E - \
        | gawk 'match($0, /^#define __NR_([^ ]+)/, res) { print "UL_SYSCALL(\"" res[1] "\", __NR_" res[1] ")" }' \