Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Fix off-by-one (config -x works again) and im...
details: https://anonhg.NetBSD.org/src/rev/cb855f3931a1
branches: trunk
changeset: 752095:cb855f3931a1
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Feb 13 22:57:03 2010 +0000
description:
Fix off-by-one (config -x works again) and improve editing artifacts
(actually the whole "config -x must be used alone" change was made
unnecessary along the way. cest la vie).
diffstat:
usr.bin/config/main.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r 4be8ccccda35 -r cb855f3931a1 usr.bin/config/main.c
--- a/usr.bin/config/main.c Sat Feb 13 22:54:51 2010 +0000
+++ b/usr.bin/config/main.c Sat Feb 13 22:57:03 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.37 2010/02/03 21:00:49 pooka Exp $ */
+/* $NetBSD: main.c,v 1.38 2010/02/13 22:57:03 pooka Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -212,9 +212,8 @@
}
}
- if (optind != 1) {
- if (xflag)
- errx(EXIT_FAILURE, "-x must be used alone");
+ if (xflag && optind != 2) {
+ errx(EXIT_FAILURE, "-x must be used alone");
}
argc -= optind;
Home |
Main Index |
Thread Index |
Old Index