Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.bin/showmount Pull up revision 1.10 (requested by m...
details: https://anonhg.NetBSD.org/src/rev/628aea7d8ceb
branches: netbsd-1-5
changeset: 491035:628aea7d8ceb
user: he <he%NetBSD.org@localhost>
date: Fri Mar 30 22:52:41 2001 +0000
description:
Pull up revision 1.10 (requested by msaitoh):
Insert tab if the length of the directory is more than 35 bytes,
to prevent concatenation.
diffstat:
usr.bin/showmount/showmount.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 576135f917ca -r 628aea7d8ceb usr.bin/showmount/showmount.c
--- a/usr.bin/showmount/showmount.c Fri Mar 30 22:49:34 2001 +0000
+++ b/usr.bin/showmount/showmount.c Fri Mar 30 22:52:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: showmount.c,v 1.9 1998/04/02 11:10:52 kleink Exp $ */
+/* $NetBSD: showmount.c,v 1.9.10.1 2001/03/30 22:52:41 he Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95";
#endif
-__RCSID("$NetBSD: showmount.c,v 1.9 1998/04/02 11:10:52 kleink Exp $");
+__RCSID("$NetBSD: showmount.c,v 1.9.10.1 2001/03/30 22:52:41 he Exp $");
#endif not lint
#include <sys/types.h>
@@ -116,6 +116,7 @@
int estat, rpcs = 0, mntvers = 1;
char *host;
int ch;
+ int len;
while ((ch = getopt(argc, argv, "ade3")) != -1)
switch((char)ch) {
@@ -190,7 +191,9 @@
printf("Exports list on %s:\n", host);
exp = exports;
while (exp) {
- printf("%-35s", exp->ex_dirp);
+ len = printf("%-35s", exp->ex_dirp);
+ if (len > 35)
+ printf("\t");
grp = exp->ex_groups;
if (grp == NULL) {
printf("Everyone\n");
Home |
Main Index |
Thread Index |
Old Index