X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fdesktop.c;h=8446a848b26baed169f915f280ef4f88e3b97b5d;hb=b362b6f7b22b6e4e9e74760989f389149677917b;hp=9f105e13e13c612757386f70c342626e28fe5e77;hpb=99080678c43ac3ebf2076598884a3e472697fe6b;p=netatalk.git diff --git a/etc/afpd/desktop.c b/etc/afpd/desktop.c index 9f105e13..8446a848 100644 --- a/etc/afpd/desktop.c +++ b/etc/afpd/desktop.c @@ -31,10 +31,10 @@ #include #include #include +#include #include "volume.h" #include "directory.h" #include "fork.h" -#include "globals.h" #include "desktop.h" #include "mangle.h" @@ -688,7 +688,7 @@ static int ad_addcomment(struct vol *vol, struct path *path, char *ibuf) } isadir = path_isadir(path); - if (isadir || !(of = of_findname(path))) { + if (isadir || !(of = of_findname(vol, path))) { ad_init(&ad, vol->v_adouble, vol->v_ad_options); adp = &ad; } else @@ -761,7 +761,7 @@ static int ad_getcomment(struct vol *vol, struct path *path, char *rbuf, size_t upath = path->u_name; isadir = path_isadir(path); - if (isadir || !(of = of_findname(path))) { + if (isadir || !(of = of_findname(vol, path))) { ad_init(&ad, vol->v_adouble, vol->v_ad_options); adp = &ad; } else @@ -838,7 +838,7 @@ static int ad_rmvcomment(struct vol *vol, struct path *path) } isadir = path_isadir(path); - if (isadir || !(of = of_findname(path))) { + if (isadir || !(of = of_findname(vol, path))) { ad_init(&ad, vol->v_adouble, vol->v_ad_options); adp = &ad; } else