Oops, don't quite use RAW_PART instead of RAWPARTITION. Use 'a' + RAW_PART
in both places.
This commit is contained in:
parent
4af4007dbb
commit
cf6ceaf1a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40615
@ -46,7 +46,7 @@ static char sccsid[] = "@(#)disklabel.c 8.2 (Berkeley) 1/7/94";
|
|||||||
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
|
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: disklabel.c,v 1.21 1998/08/23 07:32:37 bde Exp $";
|
"$Id: disklabel.c,v 1.22 1998/10/17 09:56:32 bde Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -226,7 +226,7 @@ main(argc, argv)
|
|||||||
|
|
||||||
dkname = argv[0];
|
dkname = argv[0];
|
||||||
if (dkname[0] != '/') {
|
if (dkname[0] != '/') {
|
||||||
(void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, RAW_PART);
|
(void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, 'a' + RAW_PART);
|
||||||
specname = np;
|
specname = np;
|
||||||
np += strlen(specname) + 1;
|
np += strlen(specname) + 1;
|
||||||
} else
|
} else
|
||||||
|
@ -46,7 +46,7 @@ static char sccsid[] = "@(#)disklabel.c 8.2 (Berkeley) 1/7/94";
|
|||||||
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
|
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: disklabel.c,v 1.21 1998/08/23 07:32:37 bde Exp $";
|
"$Id: disklabel.c,v 1.22 1998/10/17 09:56:32 bde Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -226,7 +226,7 @@ main(argc, argv)
|
|||||||
|
|
||||||
dkname = argv[0];
|
dkname = argv[0];
|
||||||
if (dkname[0] != '/') {
|
if (dkname[0] != '/') {
|
||||||
(void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, RAW_PART);
|
(void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, 'a' + RAW_PART);
|
||||||
specname = np;
|
specname = np;
|
||||||
np += strlen(specname) + 1;
|
np += strlen(specname) + 1;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user