mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
parent
2b6d2dda6b
commit
b539437a05
@ -834,8 +834,6 @@ int chase_symlinks(const char *path, const char *original_root, unsigned flags,
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
||||
free(done);
|
||||
|
||||
if (flags & CHASE_SAFE) {
|
||||
if (fstat(fd, &st) < 0)
|
||||
return -errno;
|
||||
@ -846,6 +844,8 @@ int chase_symlinks(const char *path, const char *original_root, unsigned flags,
|
||||
previous_stat = st;
|
||||
}
|
||||
|
||||
free(done);
|
||||
|
||||
/* Note that we do not revalidate the root, we take it as is. */
|
||||
if (isempty(root))
|
||||
done = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user