diff options
author | peter <peter@FreeBSD.org> | 1999-04-24 18:59:19 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-24 18:59:19 +0000 |
commit | 6994e5b80181dda0367cc24342a59efbbfd24a10 (patch) | |
tree | fb0aa7dbe0a0bfc6150eaeb6ca9b74bbd2cb7c3e /usr.sbin/config/main.c | |
parent | 3843abdc03deacf817f6459a1690b2911648a571 (diff) | |
download | FreeBSD-src-6994e5b80181dda0367cc24342a59efbbfd24a10.zip FreeBSD-src-6994e5b80181dda0367cc24342a59efbbfd24a10.tar.gz |
More cleanups, tweaks and features.
- make this work: options FOO123=456 *without quotes*
- grumble (but accept) vector xxxintr, and tty/net/bio/cam flags.
- complain if a device is specified twice (eg: 2 x psm0)
- don't require quotes around: port IO_COM2
- recognize negative numbers. (ie: options CAM_DEBUG_UNIT=-1)
- GC some more unused stuff (we don't have composite disks from config(8)).
- various other nits (snprintf paranoia etc)
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r-- | usr.sbin/config/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index cff924a..3f7e106 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: main.c,v 1.30 1999/04/17 14:41:40 peter Exp $"; + "$Id: main.c,v 1.31 1999/04/18 13:36:29 peter Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -131,7 +131,7 @@ main(argc, argv) fprintf(stderr, "Removing old directory %s: ", p); fflush(stderr); - sprintf(tmp, "rm -rf %s", p); + snprintf(tmp, sizeof(tmp), "rm -rf %s", p); if (system(tmp)) { fprintf(stderr, "Failed!\n"); err(2, "%s", tmp); |