X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fdirectory.c;h=7c7eae72cd9920a3d1876c016500f25fcf8a2bfb;hb=2c09a52ace844af8c2475b7221b8d69d8a81b53e;hp=f330d3ca910fa77c9260eb7898dfd0bc2d2019e0;hpb=2bf71d3ccf20c072bc67a9d075b6ac8b0798021e;p=netatalk.git diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index f330d3ca..7c7eae72 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.132 2010-02-10 14:05:37 franklahm Exp $ + * $Id: directory.c,v 1.133 2010-02-19 01:26:03 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -1642,14 +1642,14 @@ int movecwd(struct vol *vol, struct dir *dir) memcpy( p, u, n ); } if ( d != curdir ) { - n = strlen( vol->v_path ); + n = strlen( vol->v_realpath ); if (p -n -1 < path) { afp_errno = AFPERR_PARAM; return -1; } *--p = '/'; p -= n; - memcpy( p, vol->v_path, n ); + memcpy( p, vol->v_realpath, n ); } if ( (ret = lchdir( p )) != 0 ) { LOG(log_debug, logtype_afpd, "movecwd('%s'): ret:%d, %u/%s", p, ret, errno, strerror(errno));