summaryrefslogtreecommitdiff
blob: 26449e0d01aab92808928b081c88d6c8033cb638 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/palo/palo.c
+++ b/palo/palo.c
@@ -479,7 +479,7 @@
 	    error(14, "bootloader");
 
 	sprintf(badblockfilename, "/tmp/paloblk-%d", getpid());
-	if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC)) < 0) {
+	if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) {
 	    perror(badblockfilename);
 	    exit(1);
 	}