summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-03 14:54:47 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-03 14:54:47 +0200
commit8c41029c5de726a4f4866f5f57962fd4617cc0e6 (patch)
treea7106d942b1f0277e06b62c5904146b3cc8dd7d1
parent1fa0fd714896950529af79208db83c930a9c1379 (diff)
terminology: change cwd to root so we are not depending on the directorydevs/bu5hm4n/cwd_fix
we are started in
-rw-r--r--src/bin/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 0f2f7e5..62f8f91 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -874,6 +874,16 @@ remote:
874 if (ipc_instance_add(&inst)) 874 if (ipc_instance_add(&inst))
875 goto end; 875 goto end;
876 } 876 }
877 else
878 {
879 if (!cd)
880 {
881 char buf[PATH_MAX];
882 getcwd(buf, sizeof(buf));
883
884 cd = strdup(buf);
885 }
886 }
877 if ((!single) && (config->multi_instance)) 887 if ((!single) && (config->multi_instance))
878 { 888 {
879 ipc_instance_new_func_set(main_ipc_new); 889 ipc_instance_new_func_set(main_ipc_new);