On Thu, 16 Aug 2007 21:47:35 +0200, Oliver Falk <oliver@xxxxxxxxxxxxxxx> wrote: > if ((fd = open(fname, readonly? O_RDONLY : (O_RDWR|O_CREAT), 0022)) < 0) { This was my first idea, but then I remembered how printk complains about extra arguments for a format. BTW, 022 is an strange mode. It looks like you used the umask. -- Pete -- Fedora-maintainers mailing list Fedora-maintainers@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers -- Fedora-maintainers-readonly mailing list Fedora-maintainers-readonly@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly