X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Ffiledir.c;h=4451ae804c29ec0a2717ae488e93db7f4ad5d0a6;hb=2bf71d3ccf20c072bc67a9d075b6ac8b0798021e;hp=897bb5768c4cf99222ca59449ee9be2425e79454;hpb=6d1ce9b85bf3d1813776830f5894d83b79d7e45f;p=netatalk.git diff --git a/etc/afpd/filedir.c b/etc/afpd/filedir.c index 897bb576..4451ae80 100644 --- a/etc/afpd/filedir.c +++ b/etc/afpd/filedir.c @@ -1,5 +1,5 @@ /* - * $Id: filedir.c,v 1.69 2010-01-21 14:14:49 didg Exp $ + * $Id: filedir.c,v 1.70 2010-02-10 14:05:37 franklahm Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -98,7 +98,7 @@ more information */ upath, strerror(errno)); ret = AFPERR_ACCESS; } - else if (chmod(upath,(st.st_mode&~default_options.umask)| S_IRGRP| S_IROTH) < 0) + else if ((!S_ISLNK(st->st_mode)) && (chmod(upath,(st.st_mode&~default_options.umask)| S_IRGRP| S_IROTH) < 0)) { LOG(log_error, logtype_afpd, "matchfile2dirperms(%s): Error adding file read permissions: %s",