]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/desktop.c
don't create an adouble file in ad_metadata for noadouble volume
[netatalk.git] / etc / afpd / desktop.c
index 9ce7ad2aaeaa888ea65cc578f9dce9765947dff3..a679cf7d8180983cce9c86daa55ea900c83f6e54 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: desktop.c,v 1.46 2009-11-09 01:36:18 didg Exp $
+ * $Id: desktop.c,v 1.47 2009-11-27 12:37:24 didg Exp $
  *
  * See COPYRIGHT.
  *
@@ -766,7 +766,7 @@ static int ad_getcomment(struct vol *vol, struct path *path, char *rbuf, size_t
     } else
         adp = of->of_ad;
         
-    if ( ad_metadata( upath,( isadir) ? ADFLAGS_DIR : 0, adp) < 0 ) {
+    if ( ad_metadata( upath,vol_noadouble(vol) | ((isadir) ? ADFLAGS_DIR : 0), adp) < 0 ) {
         return( AFPERR_NOITEM );
     }