mirror of
https://github.com/systemd/systemd.git
synced 2026-07-25 16:55:44 +00:00
util_unlink_secure(): chmod() before chown()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user