chiark / gitweb /
[PATCH] set default owner/group in db.
authorhannal@us.ibm.com <hannal@us.ibm.com>
Tue, 20 Jan 2004 03:42:42 +0000 (19:42 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:17 +0000 (21:13 -0700)
commit74c73ef994f3ea8d013c33fe7be73e0c0c86977b
treeb8bc8217dccaacf15a34c69ef11a7a17484d3106
parentb2a21a35476b4780ef1fc68c60216117ab66fa2b
[PATCH] set default owner/group in db.

This patch fixes a bug where the udev database stored empty strings
for Owner and Group if they were default. This patch stores the default
value into the database if not set otherwise. See example output:

crw-------    1 root     root       4,  65 Jan 16 11:13 ttyS1

P: /class/tty/ttyS1
N: ttyS1
S:
O: root
G: root

This is a bit of a hack. However, until udev supports setting the
o/g values they will be root/root anyway so the database might as
well reflect the truth instead of empty strings.
namedev.c
udev.h
udev_config.c