BSD 4_4_Lite1 release
[unix-history] / usr / src / usr.sbin / config / mkioconf.c
index e3622cb..394ca7e 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)mkioconf.c 8.1 (Berkeley) 6/6/93";
+static char sccsid[] = "@(#)mkioconf.c 8.2 (Berkeley) 1/21/94";
 #endif /* not lint */
 
 #include <stdio.h>
 #endif /* not lint */
 
 #include <stdio.h>
@@ -1075,7 +1075,8 @@ comp_config(fp)
                if (dp == 0)
                        continue;
                fprintf(fp, "\t%d,\t%d,\t%d,\t%d,\t{",
                if (dp == 0)
                        continue;
                fprintf(fp, "\t%d,\t%d,\t%d,\t%d,\t{",
-                       dp->d_unit, dp->d_pri, dp->d_flags, 1);
+                       dp->d_unit, dp->d_pri < 0 ? 0 : dp->d_pri,
+                       dp->d_flags, 1);
                for (fl = fl->f_next; fl->f_type == COMPSPEC; fl = fl->f_next)
                        fprintf(fp, " 0x%x,", fl->f_compdev);
                fprintf(fp, " NODEV },\n");
                for (fl = fl->f_next; fl->f_type == COMPSPEC; fl = fl->f_next)
                        fprintf(fp, " 0x%x,", fl->f_compdev);
                fprintf(fp, " NODEV },\n");