calculate the correct location of citadel binaries for setup.
authorWilfried Göesgens <willi@citadel.org>
Thu, 16 Mar 2006 19:33:44 +0000 (19:33 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 16 Mar 2006 19:33:44 +0000 (19:33 +0000)
citadel/citadel_dirs.c

index 807c722e39a975f2dcfd11b8c988e2d9f6f94c70..ffa9df951b8400b199e1192dfce086b773e7e5e0 100644 (file)
@@ -91,8 +91,8 @@ void calc_dirs_n_files(int relh, int home, const char *relhome,const char  *ctdl
        snprintf(ctdl_sbin_dir, sizeof ctdl_sbin_dir, "/usr/sbin/");
        snprintf(ctdl_bin_dir, sizeof ctdl_bin_dir, "/usr/bin/");
 #else
-       snprintf(ctdl_sbin_dir, sizeof ctdl_sbin_dir, "/usr/sbin");
-       snprintf(ctdl_bin_dir, sizeof ctdl_bin_dir, "/usr/bin");
+       snprintf(ctdl_sbin_dir, sizeof ctdl_sbin_dir, basedir);
+       snprintf(ctdl_bin_dir, sizeof ctdl_bin_dir, basedir);
 #endif
 
 #ifndef HAVE_ETC_DIR