]> arthur.barton.de Git - netatalk.git/commitdiff
Fix the error message reported when of_find fails to find a valid fork. Since
authorjmarcus <jmarcus>
Thu, 14 Feb 2002 05:59:51 +0000 (05:59 +0000)
committerjmarcus <jmarcus>
Thu, 14 Feb 2002 05:59:51 +0000 (05:59 +0000)
of_find() doesn't set errno, there's really no since in calling strerror()
on a "dirty" value.

Prompted by: didier <dgautheron@magic.fr>

etc/afpd/fork.c

index dc64e90f5ab13ad1111e6c550568681c7ff27237..356bb6299530ebb6565fc5e5b24b0570b37da208 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: fork.c,v 1.21 2002-02-03 04:57:38 jmarcus Exp $
+ * $Id: fork.c,v 1.22 2002-02-14 05:59:51 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -550,7 +550,7 @@ int         ibuflen, *rbuflen;
 
     *rbuflen = 0;
     if (( ofork = of_find( ofrefnum )) == NULL ) {
-        LOG(log_error, logtype_default, "afp_setforkparams: of_find: %s", strerror(errno) );
+        LOG(log_error, logtype_default, "afp_setforkparams: of_find could not locate open fork refnum: %u", ofrefnum );
         return( AFPERR_PARAM );
     }