]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/filedir.c
Add new Spotlight RPC functions
[netatalk.git] / etc / afpd / filedir.c
index c349f5322e1c4db5e51c810387ea8cdc6ece77c0..234a26e550e11f47d8faf208a97371a746107773 100644 (file)
@@ -265,7 +265,7 @@ static int moveandrename(struct vol *vol,
 #ifdef HAVE_ATFUNCS
         opened = of_findnameat(sdir_fd, &path);
 #else
-        opened = of_findname(&path);
+        opened = of_findname(vol, &path);
 #endif /* HAVE_ATFUNCS */
 
         if (opened) {
@@ -302,7 +302,7 @@ static int moveandrename(struct vol *vol,
         ad_getattr(adp, &bshort);
         
         ad_close(adp, ADFLAGS_HF);
-        if ((bshort & htons(ATTRBIT_NORENAME))) {
+        if (!(vol->v_ignattr & ATTRBIT_NORENAME) && (bshort & htons(ATTRBIT_NORENAME))) {
             rc = AFPERR_OLOCK;
             goto exit;
         }