diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-14 08:19:08 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-14 08:19:08 +0000 |
commit | f0c0a8b7ce229fd45f2049dad058762074d43f09 (patch) | |
tree | e98851fbf4c9a29a41bc615b892df700218ceb5c /usr.sbin/bad144 | |
parent | 08e7f4be2f5c38b3ff12e69099c2b8067c5e3f6e (diff) | |
download | FreeBSD-src-f0c0a8b7ce229fd45f2049dad058762074d43f09.zip FreeBSD-src-f0c0a8b7ce229fd45f2049dad058762074d43f09.tar.gz |
Don't add a slash to the end of _PATH_DEV, it already has one.
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.
Obtained from: FreeBSD 1.1.5.1
Diffstat (limited to 'usr.sbin/bad144')
-rw-r--r-- | usr.sbin/bad144/bad144.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c index 7902cb3..d2fdee4 100644 --- a/usr.sbin/bad144/bad144.c +++ b/usr.sbin/bad144/bad144.c @@ -160,7 +160,7 @@ usage: exit(1); } if (argv[0][0] != '/') - (void)sprintf(name, "%s/r%s%c", _PATH_DEV, argv[0], + (void)sprintf(name, "%sr%s%c", _PATH_DEV, argv[0], 'a' + RAW_PART); else strcpy(name, argv[0]); @@ -274,6 +274,7 @@ usage: continue; } } + printf(stderr, "\n"); } argc--; |