chiark / gitweb /
selinux: fix typo in block device node selection
[elogind.git] / udev_selinux.c
index 94c213d297aca46c0d3927709db2789119bb57fc..446fedc3c35aa67c47e724cb820f357d69d61196 100644 (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);