]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/vfs/unix.c
Add vasprintf compatibility function
[netatalk.git] / libatalk / vfs / unix.c
index f414bf597eaf4e0f59c11c83fb3f93d1295d85a4..79e4fd33c29b151a08cd4afb4b157c638ea444b4 100644 (file)
@@ -74,6 +74,7 @@ int netatalk_rmdir_all_errors(int dirfd, const char *name)
         case ENOENT :
             return AFPERR_NOOBJ;
         case ENOTEMPTY :
+        case EEXIST:
             return AFPERR_DIRNEMPT;
         case EPERM:
         case EACCES :
@@ -166,9 +167,6 @@ int copy_file(int dirfd, const char *src, const char *dst, mode_t mode)
     int    ret = 0;
     int    sfd = -1;
     int    dfd = -1;
-    ssize_t cc;
-    size_t  buflen;
-    char   filebuf[NETATALK_DIOSZ_STACK];
 
 #ifdef HAVE_ATFUNCS
     if (dirfd == -1)