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
BSD 4_3 release
[unix-history]
/
usr
/
src
/
etc
/
config
/
mkswapconf.c
diff --git
a/usr/src/etc/config/mkswapconf.c
b/usr/src/etc/config/mkswapconf.c
index
e60b76b
..
038bcae
100644
(file)
--- a/
usr/src/etc/config/mkswapconf.c
+++ b/
usr/src/etc/config/mkswapconf.c
@@
-1,6
+1,12
@@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)mkswapconf.c
4.1 (Berkeley) 8/13/83
";
-#endif
+static char sccsid[] = "@(#)mkswapconf.c
5.1 (Berkeley) 5/8/85
";
+#endif
not lint
/*
* Build a swap configuration file.
/*
* Build a swap configuration file.
@@
-112,7
+118,7
@@
nametodev(name, defunit, defpartition)
while (*cp && !isdigit(*cp))
cp++;
unit = *cp ? atoi(cp) : defunit;
while (*cp && !isdigit(*cp))
cp++;
unit = *cp ? atoi(cp) : defunit;
- if (unit < 0 || unit >
7
) {
+ if (unit < 0 || unit >
31
) {
fprintf(stderr,
"config: %s: invalid device specification, unit out of range\n", name);
unit = defunit; /* carry on more checking */
fprintf(stderr,
"config: %s: invalid device specification, unit out of range\n", name);
unit = defunit; /* carry on more checking */