summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2002-01-26 11:21:19 +0000
committerjoerg <joerg@FreeBSD.org>2002-01-26 11:21:19 +0000
commitcc5a433a5e8a9fedce126874b6188478b8453575 (patch)
tree8d27abf40c59b23b0fe453f33c2b7a13abbb8a01 /sbin/fsdb
parentffde9fe98f3c618efe73388499f84ed8e7f7dbb9 (diff)
downloadFreeBSD-src-cc5a433a5e8a9fedce126874b6188478b8453575.zip
FreeBSD-src-cc5a433a5e8a9fedce126874b6188478b8453575.tar.gz
Don't exit with -1 if the user typed "quit".
MFC after: 1 week
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 3da298a..9ba91aa 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -275,7 +275,8 @@ cmdloop()
rval = 0;
free(line);
if (rval < 0)
- return rval;
+ /* user typed "quit" */
+ return 0;
if (rval)
warnx("rval was %d", rval);
}
OpenPOWER on IntegriCloud