Don't try to do anything with the /dev/rXXX device.
This commit is contained in:
parent
149938cc61
commit
6801d96c70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61104
@ -406,11 +406,9 @@ main(argc, argv)
|
|||||||
cp = strrchr(special, '/');
|
cp = strrchr(special, '/');
|
||||||
if (cp == 0) {
|
if (cp == 0) {
|
||||||
/*
|
/*
|
||||||
* No path prefix; try /dev/r%s then /dev/%s.
|
* No path prefix; try /dev/%s.
|
||||||
*/
|
*/
|
||||||
(void)sprintf(device, "%sr%s", _PATH_DEV, special);
|
(void)sprintf(device, "%s%s", _PATH_DEV, special);
|
||||||
if (stat(device, &st) == -1)
|
|
||||||
(void)sprintf(device, "%s%s", _PATH_DEV, special);
|
|
||||||
special = device;
|
special = device;
|
||||||
}
|
}
|
||||||
if (Nflag) {
|
if (Nflag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user