From 8ad517944e46710ab832350c0dc3fc4e9239f7e2 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 25 Mar 2004 23:03:57 +0000 Subject: Today's changes. More changes. --- src/lib9/create.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/lib9/create.c') 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 #include -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; } -- cgit v1.2.3