X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fofork.c;h=75f89eba038646a86f822f2248b7930fe01896e8;hp=9bb6966770effcd6f627ff91746e7990d3f96224;hb=1b20936596f89b2706f1122ca2fabad6ffe00c98;hpb=edefad2f0703ed2f6a21025d615600ed18c83d18 diff --git a/etc/afpd/ofork.c b/etc/afpd/ofork.c index 9bb69667..75f89eba 100644 --- a/etc/afpd/ofork.c +++ b/etc/afpd/ofork.c @@ -1,5 +1,5 @@ /* - * $Id: ofork.c,v 1.30 2009-11-13 00:27:36 didg Exp $ + * $Id: ofork.c,v 1.30.2.1 2010-01-02 10:22:32 franklahm Exp $ * * Copyright (c) 1996 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -285,7 +285,7 @@ int of_stat (struct path *path) int ret; path->st_errno = 0; path->st_valid = 1; - if ((ret = stat(path->u_name, &path->st)) < 0) + if ((ret = lstat(path->u_name, &path->st)) < 0) path->st_errno = errno; return ret; } @@ -309,7 +309,7 @@ int ret; /* FIXME, what about: we don't have r-x perm anymore ? */ strlcpy(pathname +3, path->d_dir->d_u_name, sizeof (pathname) -3); - if (!(ret = stat(pathname, &path->st))) + if (!(ret = lstat(pathname, &path->st))) return 0; path->st_errno = errno; @@ -318,7 +318,7 @@ int ret; if (movecwd(vol, curdir->d_parent)) return -1; path->st_errno = 0; - if ((ret = stat(path->d_dir->d_u_name, &path->st)) < 0) + if ((ret = lstat(path->d_dir->d_u_name, &path->st)) < 0) path->st_errno = errno; } return ret;