chiark / gitweb /
selinux: fix typo in block device node selection
authorKay Sievers <kay.sievers@suse.de>
Sun, 7 May 2006 20:31:06 +0000 (22:31 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sun, 7 May 2006 20:31:06 +0000 (22:31 +0200)
udev_selinux.c

index 94c213d..446fedc 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);