|
|
@@ -309,8 +309,8 @@ static int handle_remove(const char *nodename, struct device *dev)
|
|
|
* before unlinking this node, reset permissions
|
|
|
* of possible references like hardlinks
|
|
|
*/
|
|
|
- newattrs.ia_uid = 0;
|
|
|
- newattrs.ia_gid = 0;
|
|
|
+ newattrs.ia_uid = GLOBAL_ROOT_UID;
|
|
|
+ newattrs.ia_gid = GLOBAL_ROOT_GID;
|
|
|
newattrs.ia_mode = stat.mode & ~0777;
|
|
|
newattrs.ia_valid =
|
|
|
ATTR_UID|ATTR_GID|ATTR_MODE;
|