diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-10 17:44:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-26 18:09:01 +0100 |
commit | 1295c9066a490bee60c2921b798911326a468eb8 (patch) | |
tree | beb52c86d23634e0a0dd355ad477646bb19c08df /src/import/import.c | |
parent | fd67de0152ca63ac47c954d37da6579be3b4ee20 (diff) | |
download | systemd-1295c9066a490bee60c2921b798911326a468eb8.tar.gz |
import: prefer fd_get_path() over readlink_malloc() where applicable
Diffstat (limited to 'src/import/import.c')
-rw-r--r-- | src/import/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/import.c b/src/import/import.c index 9dca2f3d41..f34244acff 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -96,7 +96,7 @@ static int import_tar(int argc, char *argv[], void *userdata) { fd = STDIN_FILENO; - (void) readlink_malloc("/proc/self/fd/0", &pretty); + (void) fd_get_path(fd, &pretty); log_info("Importing '%s', saving as '%s'.", strna(pretty), local); } @@ -192,7 +192,7 @@ static int import_raw(int argc, char *argv[], void *userdata) { fd = STDIN_FILENO; - (void) readlink_malloc("/proc/self/fd/0", &pretty); + (void) fd_get_path(fd, &pretty); log_info("Importing '%s', saving as '%s'.", strempty(pretty), local); } |