summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-19 19:44:24 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:17 -0700
commit765cbd97599d943adc73d03f4c91bd7cf7ef7fab (patch)
treeb6ce2967912c4bbcffeefec4e334d65c9abb5da9 /namedev.c
parent74c73ef994f3ea8d013c33fe7be73e0c0c86977b (diff)
[PATCH] set default owner/group in db - update
I've edited the man page today, so this is alreay included :) Also a few more trivials: o added the defaults to udev.conf.in o removed class_dev from get_default_mode(), to match with Hanna's o changed size of mode_str to MODE_SIZE o changed a few char compares from from 0x00 to '\0'
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/namedev.c b/namedev.c
index e39207e6a7..7fd69f7778 100644
--- a/namedev.c
+++ b/namedev.c
@@ -141,7 +141,7 @@ static struct perm_device *find_perm(char *name)
return NULL;
}
-static mode_t get_default_mode(struct sysfs_class_device *class_dev)
+static mode_t get_default_mode(void)
{
mode_t mode = 0600; /* default to owner rw only */
@@ -735,7 +735,7 @@ done:
strfieldcpy(udev->group, perm->group);
} else {
/* no matching perms found :( */
- udev->mode = get_default_mode(class_dev);
+ udev->mode = get_default_mode();
strncpy(udev->owner, get_default_owner(), OWNER_SIZE);
strncpy(udev->group, get_default_group(), GROUP_SIZE);
}