]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/vfs/unix.c
Move fullpathname() around in libatalk
[netatalk.git] / libatalk / vfs / unix.c
index 229f1b7a216e25309c3c581c5c9fcc6e3a1ca6e5..cc053c91b35dd6935cbf28f60ba5682bc3555a23 100644 (file)
@@ -168,21 +168,6 @@ int netatalk_unlink(const char *name)
     return AFP_OK;
 }
 
-char *fullpathname(const char *name)
-{
-    static char wd[ MAXPATHLEN + 1];
-
-    if ( getcwd( wd , MAXPATHLEN) ) {
-        strlcat(wd, "/", MAXPATHLEN);
-        strlcat(wd, name, MAXPATHLEN);
-    }
-    else {
-        strlcpy(wd, name, MAXPATHLEN);
-    }
-    return wd;
-}
-
-
 /**************************************************************************
  * *at semnatics support functions (like openat, renameat standard funcs)
  **************************************************************************/