mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
selinux: fix typo in block device node selection
This commit is contained in:
parent
9571122e00
commit
c7a42aea3c
@ -54,7 +54,7 @@ static char *get_media(const char *devname, int mode)
|
||||
int size;
|
||||
char *media = NULL;
|
||||
|
||||
if (!(mode && S_IFBLK))
|
||||
if (!(mode & S_IFBLK))
|
||||
return NULL;
|
||||
|
||||
snprintf(procfile, PATH_MAX, "/proc/ide/%s/media", devname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user