mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-11 17:31:10 +07:00
util_unlink_secure(): chmod() before chown()
This commit is contained in:
parent
7f4954d040
commit
99eb7c451c
@ -114,8 +114,8 @@ int util_unlink_secure(struct udev *udev, const char *filename)
|
||||
{
|
||||
int err;
|
||||
|
||||
chmod(filename, 0000);
|
||||
chown(filename, 0, 0);
|
||||
chmod(filename, 0000);
|
||||
err = unlink(filename);
|
||||
if (errno == ENOENT)
|
||||
err = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user