]> arthur.barton.de Git - netatalk.git/commitdiff
if AFPVOL_MTOUUPPER or AFPVOL_MTOULOWER set , mac name and unix name are
authordidg <didg>
Wed, 7 May 2003 13:23:53 +0000 (13:23 +0000)
committerdidg <didg>
Wed, 7 May 2003 13:23:53 +0000 (13:23 +0000)
different.

etc/afpd/desktop.c

index b03dd84cd57b882765526bce0297aa6f3c496320..7e614581a0c6c60a8c875e910b2ab58813276c3b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: desktop.c,v 1.27 2003-05-03 20:03:13 didg Exp $
+ * $Id: desktop.c,v 1.28 2003-05-07 13:23:53 didg Exp $
  *
  * See COPYRIGHT.
  *
@@ -629,6 +629,9 @@ static char *old_mtoupath(const struct vol *vol, char *mpath)
         
     m = mpath;
     u = upath;
+    if ((vol->v_casefold & (AFPVOL_MTOUUPPER| AFPVOL_MTOULOWER))) {
+        changed = 1;
+    }
     while ( *m != '\0' ) {
         /* handle case conversion first */
         if (vol->v_casefold & AFPVOL_MTOUUPPER)
@@ -699,6 +702,9 @@ static char *old_utompath(const struct vol *vol, char *upath)
     /* do the hex conversion */
     u = upath;
     m = mpath;
+    if ((vol->v_casefold & (AFPVOL_MTOUUPPER| AFPVOL_MTOULOWER))) {
+        changed = 1;
+    }
     while ( *u != '\0' ) {
         /* we have a code page */
         if (vol->v_utompage && ((*u & 0x80) ||