aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-04 15:20:52 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-04 15:29:30 -0500
commita5e9b83b4c8534a7aba3be6995067e51a4ddefa9 (patch)
treebae553c131865da9e0188870cda624f32fe2077d /src
parent0a6fc7a6d4d693cc538ef39a53687a72fdc0516a (diff)
downloadspmc-a5e9b83b4c8534a7aba3be6995067e51a4ddefa9.tar.gz
Bugfix: Improper quotes around string containing "$"
Diffstat (limited to 'src')
-rw-r--r--src/rpath.c3
1 files changed, 1 insertions, 2 deletions
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;