diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/mkswap.c | 2 | ||||
-rw-r--r-- | toys/tee.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/toys/mkswap.c b/toys/mkswap.c index f902efeb..a847ab8b 100644 --- a/toys/mkswap.c +++ b/toys/mkswap.c @@ -4,7 +4,7 @@ * * Copyright 2009 Rob Landley <rob@landley.net> * - * Not in SUSv3. + * Not in SUSv4. USE_MKSWAP(NEWTOY(mkswap, "<1>2", TOYFLAG_SBIN)) @@ -52,7 +52,8 @@ void tee_main(void) // Open output files loopfiles_rw(toys.optargs, - O_RDWR|O_CREAT|((toys.optflags&1)?O_APPEND:O_TRUNC), do_tee_open); + O_RDWR|O_CREAT|((toys.optflags&1)?O_APPEND:O_TRUNC), 0666, 0, + do_tee_open); for (;;) { struct fd_list *fdl; |