diff options
author | rsc <devnull@localhost> | 2004-12-28 17:34:05 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-28 17:34:05 +0000 |
commit | f7b74c1725b497df5ce836545c127ad565175c70 (patch) | |
tree | 72bd3834e60d22524f9cccb0a90d4489aabf97c6 /src/cmd/rc | |
parent | d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f (diff) | |
download | plan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.gz plan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.bz2 plan9port-f7b74c1725b497df5ce836545c127ad565175c70.zip |
FreeBSD tweaks
Diffstat (limited to 'src/cmd/rc')
-rw-r--r-- | src/cmd/rc/unixcrap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/rc/unixcrap.c b/src/cmd/rc/unixcrap.c index 57da10ed..3a4dd2c3 100644 --- a/src/cmd/rc/unixcrap.c +++ b/src/cmd/rc/unixcrap.c @@ -1,5 +1,6 @@ #include <u.h> #include <sys/time.h> +#include <sys/stat.h> #include <sys/resource.h> #include <libc.h> #include "rc.h" @@ -174,10 +175,7 @@ execumask(void) n = strtol(argv[0], &p, 8); if(*p != 0 || p == argv[0]) goto usage; - if(umask(n) < 0){ - fprint(mapfd(2), "umask: %r\n"); - goto out; - } + umask(n); goto out; } |