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
+1 -1
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);