1
0
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:
Kay Sievers 2006-05-07 22:31:06 +02:00
parent 9571122e00
commit c7a42aea3c

View File

@ -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);