From e3f65cc56eb4a6fc6549b1b49d1cde2edda36703 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 30 Sep 2018 12:08:51 +0000 Subject: [PATCH] fix installing of symlinks --- zpm-syncfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zpm-syncfs.c b/zpm-syncfs.c index 6ea6241..958fde8 100644 --- a/zpm-syncfs.c +++ b/zpm-syncfs.c @@ -367,10 +367,11 @@ static int install_files(void *f, int ncols, char **vals, char **cols) { IERR("zero length symlink not allowed"); } - if (conf->verbose > 1) { - fprintf(stderr, "symlink %s -> %s\n", path, target); + if (conf->verbose > 0) { + fprintf(stderr, "symlink %s -> %s\n", dest, target); } - if (symlink(target, path) == -1) { + if (symlink(target, dest) == -1) { + perror("symlink failed"); IERR("can't symlink"); } } else { -- 2.40.0