diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-07-18 17:43:46 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-07-20 21:44:37 +0200 |
commit | ac4326de74061c85148942f965c513c0a0e17f1b (patch) | |
tree | 160f8ea840baabb9f1f6c7eb73bcfbdd30a072ef | |
parent | 645a3f402619c3fe0a69c125beb72d6fb9f53c20 (diff) | |
download | palo-ac4326de74061c85148942f965c513c0a0e17f1b.tar.gz |
palo/palo.c:482:5: /usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In file included from /usr/include/fcntl.h:296:0,
from palo.c:16:
In function 'open',
inlined from 'do_formatted' at palo.c:482:5:
/usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument
needs 3 arguments
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | palo/palo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/palo/palo.c b/palo/palo.c index 10031fd..fffb7ec 100644 --- a/palo/palo.c +++ b/palo/palo.c @@ -484,7 +484,7 @@ do_formatted(int init, int media, const char *medianame, int partition, 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); } |