]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/vfs/ea.c
Force conversion of EA names
[netatalk.git] / libatalk / vfs / ea.c
index 1bddfddf4d51d535727b5d639603530c12a64616..7b9cb9a7fa46171d4de0ce9ed82e1f6f1a68efeb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: ea.c,v 1.12 2009-10-25 05:45:59 didg Exp $
+  $Id: ea.c,v 1.14 2009-10-29 19:20:28 franklahm Exp $
   Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
@@ -78,7 +78,7 @@ static char *mtoupath(const struct vol *vol, const char *mpath)
     char         *u;
     size_t       inplen;
     size_t       outlen;
-    uint16_t     flags = CONV_ESCAPEHEX;
+    uint16_t     flags = CONV_ESCAPEHEX | CONV_FORCE;
 
     if (!mpath)
         return NULL;
@@ -300,7 +300,7 @@ static char * ea_path(const struct ea * restrict ea,
     static char pathbuf[MAXPATHLEN + 1];
 
     /* get name of a adouble file from uname */
-    adname = ea->vol->vfs->ad_path(ea->filename, (ea->ea_flags & EA_DIR) ? ADFLAGS_DIR : 0);
+    adname = ea->vol->ad_path(ea->filename, (ea->ea_flags & EA_DIR) ? ADFLAGS_DIR : 0);
     /* copy it so we can work with it */
     strlcpy(pathbuf, adname, MAXPATHLEN + 1);
     /* append "::EA" */