sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 386fa3d2a767a23cbd8d7ce67dbd6a953ff45032
parent 2652dcfd6ce23f9efae3f96cda0becb873b676eb
Author: sin <sin@2f30.org>
Date:   Wed Oct  7 10:22:46 +0100

flock: Set default mode for open(2)

Diffstat:
flock.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flock.c b/flock.c @@ -40,7 +40,7 @@ main(int argc, char *argv[]) if (argc < 2) usage(); - if ((fd = open(*argv, O_RDONLY | O_CREAT)) < 0) + if ((fd = open(*argv, O_RDONLY | O_CREAT, 0644)) < 0) eprintf("open %s:", *argv); if (flock(fd, flags | nonblk)) {