X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fextattrs.c;h=649cc6a30f3044b96533412751f850acee8a10be;hb=4054f4b3c85ecab060dafd46c0d3632cadbb5803;hp=13e27a03bb836b7a7eee6e42e729af2cb81b30ce;hpb=8a2f0d02022991ade37c8580c25bd8c166a3534e;p=netatalk.git diff --git a/etc/afpd/extattrs.c b/etc/afpd/extattrs.c index 13e27a03..649cc6a3 100644 --- a/etc/afpd/extattrs.c +++ b/etc/afpd/extattrs.c @@ -1,5 +1,5 @@ /* - $Id: extattrs.c,v 1.28 2009-11-27 12:37:24 didg Exp $ + $Id: extattrs.c,v 1.29 2010-01-05 12:06:33 franklahm Exp $ Copyright (c) 2009 Frank Lahm This program is free software; you can redistribute it and/or modify @@ -140,7 +140,8 @@ int afp_listextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, } adp = of_ad(vol, s_path, &ad); - uname = s_path->u_name; /* + uname = s_path->u_name; + /* We have to check the FinderInfo for the file, because if they aren't all 0 we must return the synthetic attribute "com.apple.FinderInfo". Note: the client will never (never seen in traces) request that attribute @@ -150,7 +151,7 @@ int afp_listextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, if (S_ISDIR(st->st_mode)) adflags = ADFLAGS_DIR; - if ( ad_metadata( uname, vol_noadouble(vol) | adflags, adp) < 0 ) { + if ( ad_metadata( uname, adflags, adp) < 0 ) { switch (errno) { case ENOENT: adp = NULL;