X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=etc%2Fafpd%2Ffile.c;h=e7859659bd05ba996b91bd5c052ed6153cddef58;hb=cc9df88163a2e018a55725f9b87c4002c84811ac;hp=e48afe213896e67c0595bad9027b2d647b688c6e;hpb=1db3409a39c1700e4e661d2e00fa2cbdb6ee6cd7;p=netatalk.git diff --git a/etc/afpd/file.c b/etc/afpd/file.c index e48afe21..e7859659 100644 --- a/etc/afpd/file.c +++ b/etc/afpd/file.c @@ -1580,7 +1580,7 @@ int deletefile(const struct vol *vol, int dirfd, char *file, int checkAttrib) adp = &ad; } - if ( adp && AD_RSRC_OPEN(adp) != -1 ) { /* there's a resource fork */ + if ( adp && AD_RSRC_OPEN(adp) ) { /* there's a resource fork */ adflags |= ADFLAGS_RF; /* FIXME we have a pb here because we want to know if a file is open * there's a 'priority inversion' if you can't open the ressource fork RW