projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
non-sense makes slightly more sense (from cgd)
[unix-history]
/
usr
/
src
/
sbin
/
newfs
/
newfs.c
diff --git
a/usr/src/sbin/newfs/newfs.c
b/usr/src/sbin/newfs/newfs.c
index
01302a6
..
36d4396
100644
(file)
--- a/
usr/src/sbin/newfs/newfs.c
+++ b/
usr/src/sbin/newfs/newfs.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)newfs.c 8.1
1
(Berkeley) %G%";
+static char sccsid[] = "@(#)newfs.c 8.1
2
(Berkeley) %G%";
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
@@
-350,7
+350,7
@@
main(argc, argv)
printf("%s: %s: not a character-special device\n",
progname, special);
cp = strchr(argv[0], '\0') - 1;
printf("%s: %s: not a character-special device\n",
progname, special);
cp = strchr(argv[0], '\0') - 1;
- if (cp ==
0
|| (*cp < 'a' || *cp > 'h') && !isdigit(*cp))
+ if (cp ==
-1
|| (*cp < 'a' || *cp > 'h') && !isdigit(*cp))
fatal("%s: can't figure out file system partition",
argv[0]);
#ifdef COMPAT
fatal("%s: can't figure out file system partition",
argv[0]);
#ifdef COMPAT