X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fvfs%2Funix.c;h=79e4fd33c29b151a08cd4afb4b157c638ea444b4;hb=bcb41b85b62fcc24337c9a7748dd64c10044fe46;hp=f414bf597eaf4e0f59c11c83fb3f93d1295d85a4;hpb=bd3b0cfd7c0c51048ff898e5e1b121f8a3dd1126;p=netatalk.git diff --git a/libatalk/vfs/unix.c b/libatalk/vfs/unix.c index f414bf59..79e4fd33 100644 --- a/libatalk/vfs/unix.c +++ b/libatalk/vfs/unix.c @@ -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)