diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-04-26 01:23:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-04-26 01:23:41 +0000 |
commit | e15766a6fcccb95bc8a5989db93ff10cb9e9f861 (patch) | |
tree | 9e87d32366b309b9c30ca05c3af2c471c9f8178e /sbin | |
parent | 6d57db75e277ee122eeeeb8ebca2ff2071181b05 (diff) |
Fix 'n' (name mountpoint) Editor command. The check for the presence
of the -f flag was reversed.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 7122bdb39b9..f16281a0bfd 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.194 2009/04/23 00:00:06 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.195 2009/04/26 01:23:40 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.194 2009/04/23 00:00:06 krw Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.195 2009/04/26 01:23:40 krw Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -268,7 +268,7 @@ editor(struct disklabel *lp, int f) break; case 'n': - if (fstabfile) { + if (!fstabfile) { fputs("This option is not valid when run " "without the -f flag.\n", stderr); break; |