summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/edit.c
diff options
context:
space:
mode:
authorshadchin <shadchin@openbsd.org>2014-04-25 13:38:21 +0000
committershadchin <shadchin@openbsd.org>2014-04-25 13:38:21 +0000
commit26ad794d0ab1fc6406ad39371e69806183b29e04 (patch)
treea5420637c42eb4a4b3ba50aed680264a41d13fdb /usr.bin/less/edit.c
parentImport of Less 458 (diff)
downloadwireguard-openbsd-26ad794d0ab1fc6406ad39371e69806183b29e04.tar.xz
wireguard-openbsd-26ad794d0ab1fc6406ad39371e69806183b29e04.zip
Merge Less 458 plus local patches
ok guenther@, ok jmc@ for man bits
Diffstat (limited to 'usr.bin/less/edit.c')
-rw-r--r--usr.bin/less/edit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/less/edit.c b/usr.bin/less/edit.c
index 733131536b3..e2b6eeaa381 100644
--- a/usr.bin/less/edit.c
+++ b/usr.bin/less/edit.c
@@ -1,11 +1,10 @@
/*
- * Copyright (C) 1984-2011 Mark Nudelman
+ * Copyright (C) 1984-2012 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
*
- * For more information about less, or for information on how to
- * contact the author, see the README file.
+ * For more information, see the README file.
*/
@@ -317,6 +316,10 @@ edit_ifile(ifile)
*/
__djgpp_set_ctrl_c(1);
#endif
+ } else if (strcmp(open_filename, FAKE_EMPTYFILE) == 0)
+ {
+ f = -1;
+ chflags |= CH_NODATA;
} else if ((parg.p_string = bad_file(open_filename)) != NULL)
{
/*