From a5e9b83b4c8534a7aba3be6995067e51a4ddefa9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 4 Feb 2020 15:20:52 -0500 Subject: Bugfix: Improper quotes around string containing "$" --- src/rpath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rpath.c') diff --git a/src/rpath.c b/src/rpath.c index 108e3f2..5dbe8db 100644 --- a/src/rpath.c +++ b/src/rpath.c @@ -164,8 +164,7 @@ int rpath_set(const char *filename, const char *rpath) { char args[PATH_MAX]; memset(args, '\0', PATH_MAX); - sprintf(args, "--set-rpath \"%s\"", rpath); - + sprintf(args, "--set-rpath '%s'", rpath); // note: rpath requires single-quotes Process *pe = patchelf(filename, args); if (pe != NULL) { returncode = pe->returncode; -- cgit