]> arthur.barton.de Git - netatalk.git/commitdiff
st is not a pointer here. Pass its address.
authorjmarcus <jmarcus>
Sun, 20 Jan 2002 01:34:40 +0000 (01:34 +0000)
committerjmarcus <jmarcus>
Sun, 20 Jan 2002 01:34:40 +0000 (01:34 +0000)
etc/afpd/fork.c

index e327ccabab53c40fbc7d8ce71fa36788a6af81fe..0a793d631a3b9f49c9878ec77d0df6692f292dfa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: fork.c,v 1.17 2002-01-20 01:32:45 jmarcus Exp $
+ * $Id: fork.c,v 1.18 2002-01-20 01:34:40 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -209,7 +209,7 @@ const u_int16_t     attrbits;
 #ifdef USE_LASTDID
                 aint = htonl(( st.st_dev << 16 ) | ( st.st_ino & 0x0000ffff ));
 #else /* USE_LASTDID */
-                lstp = lstat(upath, &lst) < 0 ? st : &lst;
+                lstp = lstat(upath, &lst) < 0 ? &st : &lst;
 #ifdef DID_MTAB
                 aint = htonl( afpd_st_cnid ( lstp ) );
 #else /* DID_MTAB */