aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-03-20 18:07:02 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-03-20 18:07:02 +0000
commit8ff4186a6f9d3142080fc5521fc340e5b65a00cd (patch)
treeca78fe698f69a2ce95ec7a2fc4fc95ec736f625c /release
parentb4701b88eb12f95f23d6a030eba97e52bf9b2fa9 (diff)
Notes
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/devices.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/release/sysinstall/devices.c b/release/sysinstall/devices.c
index fbd5c5606489..1bd84e9a6a46 100644
--- a/release/sysinstall/devices.c
+++ b/release/sysinstall/devices.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: devices.c,v 1.71 1998/03/15 16:15:47 jkh Exp $
+ * $Id: devices.c,v 1.72 1998/03/16 14:33:18 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -302,12 +302,13 @@ skipif:
if (fd >= 0 && RunningAsInit) {
dev_t d;
int s, fail;
- char slice[80];
+ char unit[80], slice[80];
close(fd);
/* Make associated slice entries */
for (s = 1; s < 33; s++) {
- snprintf(slice, sizeof slice, "/dev/%ss%d", device_names[i].name, s);
+ snprintf(unit, sizeof unit, device_names[i].name, i);
+ snprintf(slice, sizeof slice, "/dev/%ss%d", unit, s);
d = makedev(device_names[i].major, device_names[i].minor +
(j * device_names[i].delta) + (s * SLICE_DELTA));
fail = mknod(slice, 0640 | S_IFBLK, d);