aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/create.c')
-rw-r--r--src/lib9/create.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib9/create.c b/src/lib9/create.c
index bdad5f6a..97f6e7e2 100644
--- a/src/lib9/create.c
+++ b/src/lib9/create.c
@@ -3,16 +3,10 @@
#include <libc.h>
#include <sys/stat.h>
-extern char *_p9translate(char*);
-
int
-p9create(char *xpath, int mode, ulong perm)
+p9create(char *path, int mode, ulong perm)
{
int fd, cexec, umode, rclose;
- char *path;
-
- if((path = _p9translate(xpath)) == nil)
- return -1;
cexec = mode&OCEXEC;
rclose = mode&ORCLOSE;
@@ -48,7 +42,5 @@ out:
if(rclose)
remove(path);
}
- if(path != xpath)
- free(path);
return fd;
}