On Tue, Oct 21, 2003 at 01:50:46PM -0700, Greg KH wrote: > On Tue, Oct 21, 2003 at 10:34:04PM +0200, Kay Sievers wrote: > > > I was looking how to set permissions on the created node. > > What is the future of struct device_attr? > > Same values are in struct udevice now? > > device_attr will go away. I was leaving the namedev.c file alone when I > did the udevice cleanups so that merging with Dan's changes would be > easier. Now I'm about to go clean that up. Hi, attached is a patch for udev-add.c to set file permissions. The problem is that the resolving of owner/group name to its numeric id needs shared libc libs. What does this mean for klibc? gcc --static -o udev udev.o udev-add.o udev-remove.o udevdb.o logging.o namedev.o tdb/tdb.o tdb/spinlock.o -lsysfs -lc -Llibsysfs udev-add.o(.text+0x3bf): In function `create_node': udev-add.o(.text+0x2f6):/usr/src/udev/udev-add.c:122: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking udev-add.o(.text+0x32d):/usr/src/udev/udev-add.c:128: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking thanks, Kay