diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-16 02:29:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-16 02:29:55 +0000 |
commit | 0ec39a2c48c082ece0745acc54dcd78a8f6206e0 (patch) | |
tree | 2811f680eb495c764c5b6189884b8dd65074158d /sbin | |
parent | 7645a4f07c7dd4577ddc84b373d9ea66b8edc9b9 (diff) |
only help if possible
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fdisk/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c index f5d87ec2e33..a101986eda0 100644 --- a/sbin/fdisk/misc.c +++ b/sbin/fdisk/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.3 1997/10/16 01:47:11 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.4 1997/10/16 02:29:54 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -88,7 +88,7 @@ again: errx(1, "eof"); lbuf[strlen(lbuf)-1] = '\0'; - if (lbuf[0] == '?') { + if (help && lbuf[0] == '?') { (*help)(); goto again; } |