aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 17:34:05 +0000
committerrsc <devnull@localhost>2004-12-28 17:34:05 +0000
commitf7b74c1725b497df5ce836545c127ad565175c70 (patch)
tree72bd3834e60d22524f9cccb0a90d4489aabf97c6 /src/cmd/rc
parentd54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f (diff)
downloadplan9port-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.c6
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;
}