/*
- * $Id: afp_dsi.c,v 1.9.2.3 2002-01-14 02:56:08 srittau Exp $
+ * $Id: afp_dsi.c,v 1.9.2.4 2002-01-23 18:34:14 jmarcus Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
if (obj->logout)
(*obj->logout)();
- dsi_close(dsi);
-
/* UAM had syslog control; afpd needs to reassert itself */
openlog( "afpd", LOG_NDELAY|LOG_PID, LOG_DAEMON);
syslog(LOG_INFO, "%.2fKB read, %.2fKB written",
dsi->read_count/1024.0, dsi->write_count/1024.0);
+
+ dsi_close(dsi);
}
/* a little bit of code duplication. */
/*
- * $Id: fork.c,v 1.11.2.1 2001-12-03 05:01:04 jmarcus Exp $
+ * $Id: fork.c,v 1.11.2.2 2002-01-23 18:34:14 jmarcus Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#endif /* CNID_DB */
if (aint == 0) {
-#ifdef AFS
- aint = st.st_ino;
-#else /* AFS */
- aint = ( st.st_dev << 16 ) | ( st.st_ino & 0x0000ffff );
-#endif /* AFS */
+#ifdef USE_LASTDID
+ aint = htonl(( st.st_dev << 16 ) | ( st.st_ino & 0x0000ffff ));
+#else /* USE_LASTDID */
+ lstp = lstat(upath, &lst) < 0 ? &st : &lst;
+#ifdef DID_MTAB
+ aint = htonl( afpd_st_cnid ( lstp ) );
+#else /* DID_MTAB */
+ aint = htonl(CNID(lstp, 1));
+#endif /* DID_MTAB */
+#endif /* USE_LASTDID */
}
memcpy(data, &aint, sizeof( aint ));
/*
- * $Id: volume.c,v 1.14.2.2 2002-01-14 02:50:34 srittau Exp $
+ * $Id: volume.c,v 1.14.2.3 2002-01-23 18:34:14 jmarcus Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
volume->v_qfd = -1;
#endif /* __svr4__ */
volume->v_vid = lastvid++;
- volume->v_lastdid = 3;
+ volume->v_lastdid = 17;
/* handle options */
if (options) {
* the desk-top. That's because the Mac remembers the DID for the
* trash (even for volumes in different zones, on different servers).
* Just so this works better, we prime the DID cache with the trash,
- * fixing the trash at DID 3.
+ * fixing the trash at DID 17.
*/
p = Trash;
cname( volume, volume->v_dir, &p );