diff options
author | bde <bde@FreeBSD.org> | 1997-03-12 19:03:40 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-12 19:03:40 +0000 |
commit | 7c6cdff7fbebab403471fefea571060f26148591 (patch) | |
tree | 396bfb175828a4ce3f79452a49e304f225bfe000 /sbin | |
parent | 25cf1b7d346d3187d0f0528a8cb07e4de53e45a5 (diff) | |
download | FreeBSD-src-7c6cdff7fbebab403471fefea571060f26148591.zip FreeBSD-src-7c6cdff7fbebab403471fefea571060f26148591.tar.gz |
Fixed checking for a non-numeric minor number.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mknod/mknod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index a3050eb..0d4b814 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93"; #else static const char rcsid[] = - "$Id$"; + "$Id: mknod.c,v 1.5 1997/02/22 14:32:38 peter Exp $"; #endif #endif /* not lint */ @@ -96,7 +96,7 @@ main(argc, argv) range_error = errno; errno = 0; minor = (long)strtoul(argv[4], &endp, 0); - if (endp == argv[3] || *endp != '\0') { + if (endp == argv[4] || *endp != '\0') { (void)fprintf(stderr, "mknod: %s: non-numeric minor number\n", argv[4]); exit(1); |