Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp use default pager if $PAGER=""
details: https://anonhg.NetBSD.org/src/rev/15c670a51283
branches: trunk
changeset: 473640:15c670a51283
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Jun 11 14:12:19 1999 +0000
description:
use default pager if $PAGER=""
diffstat:
usr.bin/ftp/cmds.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7420ba3ef58a -r 15c670a51283 usr.bin/ftp/cmds.c
--- a/usr.bin/ftp/cmds.c Fri Jun 11 06:51:39 1999 +0000
+++ b/usr.bin/ftp/cmds.c Fri Jun 11 14:12:19 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.49 1999/06/02 02:03:57 lukem Exp $ */
+/* $NetBSD: cmds.c,v 1.50 1999/06/11 14:12:19 lukem Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-__RCSID("$NetBSD: cmds.c,v 1.49 1999/06/02 02:03:57 lukem Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.50 1999/06/11 14:12:19 lukem Exp $");
#endif
#endif /* not lint */
@@ -2276,7 +2276,7 @@
return;
}
p = getenv("PAGER");
- if (p == NULL)
+ if (p == NULL || p[0] == '\0')
p = PAGER;
len = strlen(p) + 2;
pager = xmalloc(len);
Home |
Main Index |
Thread Index |
Old Index