diff options
-rw-r--r-- | udev_selinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_selinux.c b/udev_selinux.c index 94c213d297..446fedc3c3 100644 --- a/udev_selinux.c +++ b/udev_selinux.c @@ -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); |