]> arthur.barton.de Git - netatalk.git/commitdiff
call mangle() after hex conversion.
authordidg <didg>
Mon, 9 Sep 2002 01:21:59 +0000 (01:21 +0000)
committerdidg <didg>
Mon, 9 Sep 2002 01:21:59 +0000 (01:21 +0000)
etc/afpd/desktop.c

index 43672599126386072a4d87f7e9e2320585e02451..ba800ddcc74ee7953f54bcdca5d0a3a464939e6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: desktop.c,v 1.15 2002-09-05 14:52:05 didg Exp $
+ * $Id: desktop.c,v 1.16 2002-09-09 01:21:59 didg Exp $
  *
  * See COPYRIGHT.
  */
@@ -670,10 +670,6 @@ char *utompath(const struct vol *vol, char *upath)
     char        *m, *u;
     int          h;
 
-#ifdef FILE_MANGLING
-    upath = mangle(vol, upath);
-#endif /* FILE_MANGLING */
-
     /* do the hex conversion */
     u = upath;
     m = mpath;
@@ -705,6 +701,11 @@ char *utompath(const struct vol *vol, char *upath)
         m++;
     }
     *m = '\0';
+
+#ifdef FILE_MANGLING
+    strcpy(mpath,mangle(vol, mpath));
+#endif /* FILE_MANGLING */
+
     return( mpath );
 }