diff mbox

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

Message ID 20130718174346.022491f8@marga.jer-c2.orkz.net (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jeroen Roovers July 18, 2013, 3:43 p.m. UTC
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>

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Helge Deller July 20, 2013, 7:53 p.m. UTC | #1
Hi Jeroen,

On 07/18/2013 05:43 PM, Jeroen Roovers wrote:
> 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>

Thanks for both patches!
I've just pushed both upstream to the palo git tree.

Both changes aren't that huge, so I'm right now not planning to
bump the version number - unless you need it for gentoo...?
Just let me know (or if you have further patches, e.g. gentoo specific files?)

Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jeroen Roovers July 21, 2013, 2:13 p.m. UTC | #2
On Sat, 20 Jul 2013 21:53:10 +0200
Helge Deller <deller@gmx.de> wrote:

> Thanks for both patches!
> I've just pushed both upstream to the palo git tree.

Great!

> Both changes aren't that huge, so I'm right now not planning to
> bump the version number - unless you need it for gentoo...?

Both patches are already used in Gentoo, so that's fine.


     jer
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);
        }