]> arthur.barton.de Git - netatalk.git/commitdiff
fix, we need to check the parent did matches in demangle, not current did
authorbfernhomberg <bfernhomberg>
Sun, 15 Feb 2004 22:44:49 +0000 (22:44 +0000)
committerbfernhomberg <bfernhomberg>
Sun, 15 Feb 2004 22:44:49 +0000 (22:44 +0000)
etc/afpd/mangle.c

index 4a6d9eb9bc5dd33a6dd6d04d4e4d8b4e07e60f67..68dede7cc183c11f878bec87ed9e9b3a31c823cc 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * $Id: mangle.c,v 1.16.2.1.2.8 2004-02-14 15:47:20 didg Exp $ 
+ * $Id: mangle.c,v 1.16.2.1.2.9 2004-02-15 22:44:49 bfernhomberg Exp $ 
  *
  * Copyright (c) 2002. Joe Marcus Clarke (marcus@marcuscom.com)
  * All Rights Reserved.  See COPYRIGHT.
@@ -147,7 +147,7 @@ private_demangle(const struct vol *vol, char *mfilename, cnid_t did, cnid_t *osx
 
     /* is it a dir?, there's a conflict with pre OSX 'trash #2'  */
     if ((dir = dirsearch(vol, id))) {
-        if (dir->d_did != id) {
+        if (dir->d_parent && dir->d_parent->d_did != did) {
             /* not in the same folder, there's a race with outdate cache
              * but we have to live with it, hopefully client will recover
             */