diff options
author | Russ Cox <rsc@swtch.com> | 2011-02-23 08:26:35 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-02-23 08:26:35 -0500 |
commit | 707b99e60b667aec4d5c130faf25ef9e9049e624 (patch) | |
tree | 4a1c0bc265ec7f4b240ea1808f9ab77ed2488de0 /src/cmd/vac | |
parent | 6886b3cd89134e1e259d66940943d15d29b159ac (diff) | |
download | plan9port-707b99e60b667aec4d5c130faf25ef9e9049e624.tar.gz plan9port-707b99e60b667aec4d5c130faf25ef9e9049e624.tar.bz2 plan9port-707b99e60b667aec4d5c130faf25ef9e9049e624.zip |
unvac: always create writable directories
R=rsc
http://codereview.appspot.com/4221043
Diffstat (limited to 'src/cmd/vac')
-rw-r--r-- | src/cmd/vac/unvac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vac/unvac.c b/src/cmd/vac/unvac.c index 8b2b290d..594a6a2e 100644 --- a/src/cmd/vac/unvac.c +++ b/src/cmd/vac/unvac.c @@ -239,7 +239,7 @@ unvac(VacFile *f, char *name, VacDir *vdir) if(!table && !tostdout && vdir){ // create directory if((dp = dirstat(name)) == nil){ - if((fd = create(name, OREAD, DMDIR|(mode&0777))) < 0){ + if((fd = create(name, OREAD, DMDIR|0700|(mode&0777))) < 0){ fprint(2, "mkdir %s: %r\n", name); vdeclose(vde); } |