mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
fixup 9678da0030
This commit is contained in:
parent
979b0944de
commit
05929f2cd5
1 changed files with 4 additions and 2 deletions
|
|
@ -447,8 +447,10 @@ int is_link(const char *fname) {
|
|||
if (*fname == '\0')
|
||||
return 0;
|
||||
|
||||
// remove trailing slashes
|
||||
char *tmp = clean_pathname(fname);
|
||||
char *tmp = strdup(fname);
|
||||
if (!tmp)
|
||||
errExit("strdup");
|
||||
trim_trailing_slash_or_dot(tmp);
|
||||
|
||||
char c;
|
||||
ssize_t rv = readlink(tmp, &c, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue