diff options
author | 2021-06-06 12:34:23 +0200 | |
---|---|---|
committer | 2021-06-06 12:34:23 +0200 | |
commit | 05929f2cd5aae94682ca38579b9ba87d2d76bb48 (patch) | |
tree | f76f4069142ab4889c5aae5e9816944cdeb1fb52 | |
parent | fix tuxguitar (diff) | |
download | firejail-05929f2cd5aae94682ca38579b9ba87d2d76bb48.tar.gz firejail-05929f2cd5aae94682ca38579b9ba87d2d76bb48.tar.zst firejail-05929f2cd5aae94682ca38579b9ba87d2d76bb48.zip |
-rw-r--r-- | src/firejail/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/util.c b/src/firejail/util.c index b41a65c1d..dc9fe2449 100644 --- a/src/firejail/util.c +++ b/src/firejail/util.c | |||
@@ -447,8 +447,10 @@ int is_link(const char *fname) { | |||
447 | if (*fname == '\0') | 447 | if (*fname == '\0') |
448 | return 0; | 448 | return 0; |
449 | 449 | ||
450 | // remove trailing slashes | 450 | char *tmp = strdup(fname); |
451 | char *tmp = clean_pathname(fname); | 451 | if (!tmp) |
452 | errExit("strdup"); | ||
453 | trim_trailing_slash_or_dot(tmp); | ||
452 | 454 | ||
453 | char c; | 455 | char c; |
454 | ssize_t rv = readlink(tmp, &c, 1); | 456 | ssize_t rv = readlink(tmp, &c, 1); |