diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-05-07 22:31:06 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-05-07 22:31:06 +0200 |
commit | c7a42aea3c1a81f7325104871aad6bb6b0a15834 (patch) | |
tree | dc6831e39269b8cedf410a6670fd9936e01d3642 /udev_selinux.c | |
parent | 9571122e00f54b5d6e5accda4c431ac6ae5c4847 (diff) |
selinux: fix typo in block device node selection
Diffstat (limited to 'udev_selinux.c')
-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); |