From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Tue, 01 Jun 2004 15:45:33 +0000 Subject: udev - flag for preserving the ownership Message-Id: <40BCA49D.2000007@redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enig79439FC8AD6B97F6D5231097" List-Id: To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig79439FC8AD6B97F6D5231097 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit How about a config flag, which means that udev preserves the ownership of an already existing device node (with the correct major, minor numbers)? Btw, we only check if the file we want to create is block or char, not e.g. that we want block and it is char. if (((stats.st_mode & S_IFMT) == S_IFBLK || (stats.st_mode & S_IFMT) == S_IFCHR) && (stats.st_rdev == makedev(major, minor))) should look like: if (((stats.st_mode & S_IFMT) == mode) && (stats.st_rdev == makedev(major, minor))) --------------enig79439FC8AD6B97F6D5231097 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAvKSgt7dFwsVXVUIRAuu5AKDGYzxYED9ja15m7BrlpUfPhp+vXACgwVVu ZB6kpQHVgvvH0QS0Pd86pxg= =8hL2 -----END PGP SIGNATURE----- --------------enig79439FC8AD6B97F6D5231097-- ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel