From 8a109cf03a8644c29b90bb8ff0afd410d7479657 Mon Sep 17 00:00:00 2001 From: jmarcus Date: Wed, 16 Jan 2002 19:46:52 +0000 Subject: [PATCH] FNum for a fork needs to go out in network byte order. --- etc/afpd/fork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/afpd/fork.c b/etc/afpd/fork.c index 543da948..05026031 100644 --- a/etc/afpd/fork.c +++ b/etc/afpd/fork.c @@ -1,5 +1,5 @@ /* - * $Id: fork.c,v 1.13 2002-01-04 04:45:47 sibaz Exp $ + * $Id: fork.c,v 1.14 2002-01-16 19:46:52 jmarcus Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -190,9 +190,9 @@ const u_int16_t attrbits; if (aint == 0) { #ifdef AFS - aint = st.st_ino; + aint = htonl(st.st_ino); #else /* AFS */ - aint = ( st.st_dev << 16 ) | ( st.st_ino & 0x0000ffff ); + aint = htonl(( st.st_dev << 16 ) | ( st.st_ino & 0x0000ffff )); #endif /* AFS */ } -- 2.39.2