diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-17 08:07:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-17 08:07:16 +0000 |
commit | 7a0d717075f339beeae8bc72b10db4e175a0f704 (patch) | |
tree | 0198449e56d4ce2cd25883b618bb7fef25390b7c | |
parent | 264f6d89d3f5d883736445e382c70d780c73e812 (diff) |
no input does not do stupid auto help
-rw-r--r-- | sbin/fdisk/user.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/fdisk/user.c b/sbin/fdisk/user.c index 1aec026ef6e..5c580ed1250 100644 --- a/sbin/fdisk/user.c +++ b/sbin/fdisk/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.8 1997/10/16 10:35:06 deraadt Exp $ */ +/* $OpenBSD: user.c,v 1.9 1997/10/17 08:07:15 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -144,10 +144,13 @@ USER_modify(disk, tt, offset) /* Edit cycle */ do { +again: printf("fdisk:%c%d> ", (modified)?'*':' ', editlevel); fflush(stdout); ask_cmd(&cmd); + if (cmd.cmd[0] == '\0') + goto again; for(i = 0; cmd_table[i].cmd != NULL; i++) if(strstr(cmd_table[i].cmd, cmd.cmd)==cmd_table[i].cmd) break; |