summaryrefslogtreecommitdiffstats
path: root/src/lib9/create.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-11 16:58:23 +0000
committerrsc <devnull@localhost>2005-02-11 16:58:23 +0000
commitb589fce2fbf05ae18a6f015240f87ce2a163521f (patch)
tree872dbf6e2c6f7be43971b6097f8bb15379e1379e /src/lib9/create.c
parent26a5fd572556f6d875c18fff8e83ed5eed6cf8fa (diff)
downloadplan9port-b589fce2fbf05ae18a6f015240f87ce2a163521f.tar.gz
plan9port-b589fce2fbf05ae18a6f015240f87ce2a163521f.zip
hard code list of plan 9 services in case they are not in /etc/services
Diffstat (limited to 'src/lib9/create.c')
-rw-r--r--src/lib9/create.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/create.c b/src/lib9/create.c
index c8f6605a..c608f905 100644
--- a/src/lib9/create.c
+++ b/src/lib9/create.c
@@ -43,6 +43,10 @@ p9create(char *path, int mode, ulong perm)
umode |= O_EXCL;
mode &= ~OEXCL;
}
+ if(mode&OAPPEND){
+ umode |= O_APPEND;
+ mode &= ~OAPPEND;
+ }
if(mode){
werrstr("unsupported mode in create");
goto out;