summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2004-03-19 14:16:01 +0000
committeraaron <aaron@openbsd.org>2004-03-19 14:16:01 +0000
commit1a14b407427c41f3084dfb3eba121c83fff2ee24 (patch)
tree3494c5a14ce9443715c17c37473d4692daceeb10 /sbin/fsdb
parentAdd missing bits to make already present privsep code work. Enable privsep. (diff)
downloadwireguard-openbsd-1a14b407427c41f3084dfb3eba121c83fff2ee24.tar.xz
wireguard-openbsd-1a14b407427c41f3084dfb3eba121c83fff2ee24.zip
Fix bad indentation that creates the illusion that there's a bug here. tedu@,
deraadt@ ok
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 4e3b751ac7b..53179b750a4 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsdb.c,v 1.17 2003/10/31 08:44:07 otto Exp $ */
+/* $OpenBSD: fsdb.c,v 1.18 2004/03/19 14:16:01 aaron Exp $ */
/* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: fsdb.c,v 1.17 2003/10/31 08:44:07 otto Exp $";
+static const char rcsid[] = "$OpenBSD: fsdb.c,v 1.18 2004/03/19 14:16:01 aaron Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -457,15 +457,16 @@ CMDFUNCSTART(focusname)
return 1;
}
for (p = argv[1]; p != NULL;) {
- while ((val = strsep(&p, "/")) != NULL && *val == '\0');
- if (val) {
- printf("component `%s': ", val);
- fflush(stdout);
- if (!dolookup(val)) {
- curinode = ginode(curinum);
- return(1);
- }
+ while ((val = strsep(&p, "/")) != NULL && *val == '\0')
+ ;
+ if (val) {
+ printf("component `%s': ", val);
+ fflush(stdout);
+ if (!dolookup(val)) {
+ curinode = ginode(curinum);
+ return(1);
}
+ }
}
return 0;
}