summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolh@suse.de <olh@suse.de>2004-03-23 18:52:52 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:10 -0700
commit4474484153f529c1a1c11392e8fc3fa8a588de54 (patch)
tree210518c599e396b0bef7466db396955981e29d17
parentfdcfcec707ab48a5285d675412820d4320382e92 (diff)
[PATCH] uninitialized variable for mknod and friend
mknod gets an uninitialized variable, which leads to interesting file modes. the bug is in namedev, devices with no match must not use the uninitialized stuff were dev points to.
-rw-r--r--namedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index e075e20af5..6606ce8f79 100644
--- a/namedev.c
+++ b/namedev.c
@@ -843,12 +843,12 @@ found:
strfieldcpy(udev->config_file, dev->config_file);
udev->config_line = dev->config_line;
-done:
/* get permissions given in rule */
set_empty_perms(udev, dev->mode,
dev->owner,
dev->group);
+done:
/* get permissions given in config file or set defaults */
perm = find_perm(udev->name);
if (perm != NULL) {