From: Kay Sievers Date: Sun, 7 May 2006 20:31:06 +0000 (+0200) Subject: selinux: fix typo in block device node selection X-Git-Tag: 174~2268 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c7a42aea3c1a81f7325104871aad6bb6b0a15834;ds=sidebyside selinux: fix typo in block device node selection --- diff --git a/udev_selinux.c b/udev_selinux.c index 94c213d29..446fedc3c 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);