-/* $NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $ */
+/* $NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
#if 0
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95";
#endif
-static char rcsid[] = "$NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $";
+static char rcsid[] = "$NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $";
#endif not lint
#include <sys/types.h>
if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
RPCMNT_DUMP, xdr_void, (char *)0,
xdr_mntdump, (char *)&mntdump)) != 0) {
+ fprintf(stderr, "showmount: Can't do Mountdump rpc: ");
clnt_perrno(estat);
- fprintf(stderr, ": Can't do Mountdump rpc\n");
exit(1);
}
if (rpcs & DOEXPORTS)
if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
RPCMNT_EXPORT, xdr_void, (char *)0,
xdr_exports, (char *)&exports)) != 0) {
+ fprintf(stderr, "showmount: Can't do Exports rpc: ");
clnt_perrno(estat);
- fprintf(stderr, ": Can't do Exports rpc\n");
exit(1);
}
usage()
{
- fprintf(stderr, "usage: showmount [-ade] host\n");
+ fprintf(stderr, "usage: showmount [-ade3] host\n");
exit(1);
}