mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't do anything with /dev/rXXX
This commit is contained in:
parent
6801d96c70
commit
49eb60e70f
1 changed files with 1 additions and 3 deletions
|
|
@ -1044,10 +1044,8 @@ int open_cd ()
|
|||
|
||||
if (*cdname == '/') {
|
||||
snprintf (devbuf, MAXPATHLEN, "%s", cdname);
|
||||
} else if (*cdname == 'r') {
|
||||
snprintf (devbuf, MAXPATHLEN, "/dev/%s", cdname);
|
||||
} else {
|
||||
snprintf (devbuf, MAXPATHLEN, "/dev/r%s", cdname);
|
||||
snprintf (devbuf, MAXPATHLEN, "/dev/%s", cdname);
|
||||
}
|
||||
|
||||
fd = open (devbuf, O_RDONLY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue