aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-qr.c
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2019-03-03 02:10:13 +0100
committerChristian Grothoff <christian@grothoff.org>2019-04-03 13:43:15 +0200
commit8f07aace2f2842b506350e608616c8055a2c71f9 (patch)
tree0c4ddeddb0ea477105df80932ddca5bbe058c6de /src/util/gnunet-qr.c
parent4cecaf9d96ef62430ad81fe5e7a24ca68cd27095 (diff)
downloadgnunet-8f07aace2f2842b506350e608616c8055a2c71f9.tar.gz
gnunet-8f07aace2f2842b506350e608616c8055a2c71f9.zip
gnunet-qr: Use the `gnunet-uri` binary installed into PREFIX.
This helps keeping environments concise and functional package managers like guix this will ensure `gnunet-uri` from the same environment is used.
Diffstat (limited to 'src/util/gnunet-qr.c')
-rw-r--r--src/util/gnunet-qr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/gnunet-qr.c b/src/util/gnunet-qr.c
index c8919dae4..ea0e0fea2 100644
--- a/src/util/gnunet-qr.c
+++ b/src/util/gnunet-qr.c
@@ -132,11 +132,11 @@ int main (int argc, char **argv)
132 if (configuration == NULL) { 132 if (configuration == NULL) {
133 char* command_args[] = {"gnunet-uri", data, NULL }; 133 char* command_args[] = {"gnunet-uri", data, NULL };
134 LOG("Running `gnunet-uri %s`\n", data); 134 LOG("Running `gnunet-uri %s`\n", data);
135 rc = fork_and_exec("gnunet-uri", command_args); 135 rc = fork_and_exec(BINDIR "gnunet-uri", command_args);
136 } else { 136 } else {
137 char* command_args[] = {"gnunet-uri", "-c", configuration, data, NULL }; 137 char* command_args[] = {"gnunet-uri", "-c", configuration, data, NULL };
138 LOG("Running `gnunet-uri -c '%s' %s`\n", configuration, data); 138 LOG("Running `gnunet-uri -c '%s' %s`\n", configuration, data);
139 rc = fork_and_exec("gnunet-uri", command_args); 139 rc = fork_and_exec(BINDIR "gnunet-uri", command_args);
140 }; 140 };
141 141
142 if (rc != 0) { 142 if (rc != 0) {