sbase

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

commit 52e0554afb2d849c9612d2b51d6f0ebd8ec5bc62
parent 8cf394af2ad8b1716fae692f3520b09d655824e5
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)) {