else
mode |= S_IFCHR;
- if (stat(file, &stats) != 0)
+ if (lstat(file, &stats) != 0)
goto create;
/* preserve node with already correct numbers, to prevent changing the inode number */
update_link(udev, link_old_loop->name);
}
}
+
+ /* the old node is gone, maybe we have a device with a symlink now */
+ update_link(udev, udev_old->name);
}
}