Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/mountd Pull up rev. 1.72:
details: https://anonhg.NetBSD.org/src/rev/b16b685650dd
branches: netbsd-1-5
changeset: 488293:b16b685650dd
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jun 27 21:34:28 2000 +0000
description:
Pull up rev. 1.72:
Add some extra instrumentation in the `debug' case.
diffstat:
usr.sbin/mountd/mountd.c | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diffs (59 lines):
diff -r 95da8f6b420c -r b16b685650dd usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c Tue Jun 27 20:09:33 2000 +0000
+++ b/usr.sbin/mountd/mountd.c Tue Jun 27 21:34:28 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mountd.c,v 1.70.2.1 2000/06/21 07:07:25 enami Exp $ */
+/* $NetBSD: mountd.c,v 1.70.2.2 2000/06/27 21:34:28 thorpej Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -51,7 +51,11 @@
#if 0
static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: mountd.c,v 1.70.2.1 2000/06/21 07:07:25 enami Exp $");
+<<<<<<< mountd.c
+__RCSID("$NetBSD: mountd.c,v 1.70.2.2 2000/06/27 21:34:28 thorpej Exp $");
+=======
+__RCSID("$NetBSD: mountd.c,v 1.70.2.2 2000/06/27 21:34:28 thorpej Exp $");
+>>>>>>> 1.72
#endif
#endif /* not lint */
@@ -494,13 +498,18 @@
syslog(LOG_ERR, "Can't send reply");
return;
case MOUNTPROC_MNT:
+ if (debug)
+ fprintf(stderr,
+ "got mount request from %s\n", numerichost);
if (!svc_getargs(transp, xdr_dir, rpcpath)) {
+ if (debug)
+ fprintf(stderr, "-> garbage args\n");
svcerr_decode(transp);
return;
}
if (debug)
fprintf(stderr,
- "got mount request from %s\n", numerichost);
+ "-> rpcpath: %s\n", rpcpath);
/*
* Get the real pathname and make sure it is a file or
* directory that exists.
@@ -511,12 +520,15 @@
statfs(dirpath, &fsb) < 0) {
(void)chdir("/"); /* Just in case realpath doesn't */
if (debug)
- (void)fprintf(stderr, "stat failed on %s\n",
+ (void)fprintf(stderr, "-> stat failed on %s\n",
dirpath);
if (!svc_sendreply(transp, xdr_long, (caddr_t) &bad))
syslog(LOG_ERR, "Can't send reply");
return;
}
+ if (debug)
+ fprintf(stderr,
+ "-> dirpath: %s\n", dirpath);
/* Check in the exports list */
(void)sigprocmask(SIG_BLOCK, &sighup_mask, NULL);
ep = ex_search(&fsb.f_fsid);
Home |
Main Index |
Thread Index |
Old Index