]> arthur.barton.de Git - netatalk.git/commitdiff
in setfilparam when switching to a symlink use of_stat rathert than lstat, of_stat...
authordidg <didg>
Wed, 17 Feb 2010 01:41:58 +0000 (01:41 +0000)
committerdidg <didg>
Wed, 17 Feb 2010 01:41:58 +0000 (01:41 +0000)
etc/afpd/file.c

index aaf4704fe18e5db6da77dd7cb53d1ff02c11d57b..4259dbd4ff32c86b01aa1d6c16ca6aa4425d6f7f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.136 2010-02-17 01:19:51 didg Exp $
+ * $Id: file.c,v 1.137 2010-02-17 01:41:58 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -816,8 +816,9 @@ int setfilparams(struct vol *vol,
                     if ((len=read(fp,buf,PATH_MAX+1))){
                         if (unlink(path->u_name)==0){
                             buf[len]=0;
-                            erc=symlink(buf,path->u_name);  
-                            lstat(path->u_name,&(path->st));
+                            erc = symlink(buf, path->u_name);
+                            if (!erc)
+                                of_stat(path);
                         }
                     }
                     close(fp);