X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fenumerate.c;h=523223b109eba1ff20e4e5b428482524589acc5e;hp=4608ecb4e3fb03edae1ecdcd366d94b742a69269;hb=1b20936596f89b2706f1122ca2fabad6ffe00c98;hpb=edefad2f0703ed2f6a21025d615600ed18c83d18 diff --git a/etc/afpd/enumerate.c b/etc/afpd/enumerate.c index 4608ecb4..523223b1 100644 --- a/etc/afpd/enumerate.c +++ b/etc/afpd/enumerate.c @@ -1,5 +1,5 @@ /* - * $Id: enumerate.c,v 1.47 2009-10-15 10:43:13 didg Exp $ + * $Id: enumerate.c,v 1.47.2.1 2010-01-02 10:22:32 franklahm Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -277,7 +277,7 @@ static int enumerate(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, if ( sindex == 1 || curdir->d_did != sd.sd_did || vid != sd.sd_vid ) { sd.sd_last = sd.sd_buf; /* if dir was in the cache we don't have the inode */ - if (( !o_path->st_valid && stat( ".", &o_path->st ) < 0 ) || + if (( !o_path->st_valid && lstat( ".", &o_path->st ) < 0 ) || (ret = for_each_dirent(vol, ".", enumerate_loop, (void *)&sd)) < 0) { switch (errno) {