]> arthur.barton.de Git - netatalk.git/commitdiff
s/retval/errno/
authorjmarcus <jmarcus>
Tue, 5 Mar 2002 15:55:34 +0000 (15:55 +0000)
committerjmarcus <jmarcus>
Tue, 5 Mar 2002 15:55:34 +0000 (15:55 +0000)
Pointed out by: Sebastian Rittau <srittau@jroger.in-berlin.de>

etc/afpd/unix.c

index b7995f73b57ccb0a6b2867994fa3817b4885977d..a23c1938ea1e8e281f2defbf7151398323071490 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unix.c,v 1.24.2.3 2002-03-05 02:08:12 jmarcus Exp $
+ * $Id: unix.c,v 1.24.2.4 2002-03-05 15:55:34 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -235,7 +235,7 @@ const int dropbox;
                     syslog( LOG_ERR, "stickydirmode: unable to seteuid root: %s", strerror(errno));
                 }
                 if ( retval=chmod( name, ( (DIRBITS | mode | S_ISVTX) & 0777 & ~default_options.umask) ) < 0) {
-                    syslog( LOG_ERR, "stickydirmode: chmod \"%s\": %s", name, strerror(retval) );
+                    syslog( LOG_ERR, "stickydirmode: chmod \"%s\": %s", name, strerror(errno) );
                     return(AFPERR_ACCESS);
                 } else {
 #ifdef DEBUG