X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Ffiledir.c;h=ac6f2d5e0396ad54019c33fec70dd38c035a3160;hb=b501c0b10a93f0740a0f5d3e82b56c9a047e5334;hp=8e03cbcc0403db67c45515e20ad9ff7730bea338;hpb=05701d289025c26cea41937d69109ad58e24437b;p=netatalk.git diff --git a/etc/afpd/filedir.c b/etc/afpd/filedir.c index 8e03cbcc..ac6f2d5e 100644 --- a/etc/afpd/filedir.c +++ b/etc/afpd/filedir.c @@ -1,5 +1,5 @@ /* - * $Id: filedir.c,v 1.50 2005-06-02 12:32:17 didg Exp $ + * $Id: filedir.c,v 1.51 2008-08-31 13:25:58 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -406,14 +406,14 @@ int isdir; if (strcmp(oldname, newname) == 0) return AFP_OK; - if (stat(upath, st) == 0 || caseenumerate(vol, &path, curdir) == 0) { + if (stat(upath, st) == 0 ) { if (!stat(p, &nst) && !(nst.st_dev == st->st_dev && nst.st_ino == st->st_ino) ) { /* not the same file */ return AFPERR_EXIST; } errno = 0; } - } else if (stat(upath, st ) == 0 || caseenumerate(vol, &path, curdir) == 0) + } else if (stat(upath, st ) == 0) return AFPERR_EXIST; if ( !isdir ) {