1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Package Salvaging Team <team+salvage@tracker.debian.org>
Date: Thu, 21 Aug 2025 21:45:17 +0200
Subject: Use a permissive mode for the output file by default
Origin: vendor
Bug-Debian: http://bugs.debian.org/211546
This allows modifying the mode by using umask.
---
safecat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/safecat.c b/safecat.c
index f5f592c..962e1af 100644
--- a/safecat.c
+++ b/safecat.c
@@ -95,7 +95,7 @@ int main(int argc, char *argv[]) {
/* Step 4: Create the file tempdir/time.MusecPpid.host */
alarm(86400);
- outfd = open(tmppath.s,O_WRONLY | O_EXCL | O_CREAT | O_LARGEFILE,0644);
+ outfd = open(tmppath.s,O_WRONLY | O_EXCL | O_CREAT | O_LARGEFILE,0666);
if(outfd == -1) {
strerr_die2sys(111,"safecat: fatal: ","couldn't create output file: ");
}
|