--- udev-025/udev-add.c.keep 2004-04-21 23:39:10.000000000 +0200 +++ udev-025/udev-add.c 2004-06-02 12:08:16.728855024 +0200 @@ -114,10 +114,10 @@ goto create; /* preserve node with already correct numbers, to not change the inode number */ - if (((stats.st_mode & S_IFMT) == S_IFBLK || (stats.st_mode & S_IFMT) == S_IFCHR) && + if (((stats.st_mode & S_IFMT) == (mode & S_IFMT)) && (stats.st_rdev == makedev(major, minor))) { dbg("preserve file '%s', cause it has correct dev_t", file); - goto perms; + goto exit; } if (unlink(file) != 0)