* set basedir to ctdldir on startup for bin/sbin calculation in non-fssnd
authorWilfried Göesgens <willi@citadel.org>
Fri, 9 Nov 2007 17:17:07 +0000 (17:17 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 9 Nov 2007 17:17:07 +0000 (17:17 +0000)
citadel/citadel_dirs.c

index 29552761e33e854535f0d5e63dd78d7da4af4ad0..f7c746d88ba2b3f2a96608db4913b48aebb747e9 100644 (file)
@@ -102,8 +102,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, basedir);
-       snprintf(ctdl_bin_dir, sizeof ctdl_bin_dir, basedir);
+       snprintf(ctdl_sbin_dir, sizeof ctdl_sbin_dir, ctdldir);
+       snprintf(ctdl_bin_dir, sizeof ctdl_bin_dir, ctdldir);
 #endif
 
 #ifndef HAVE_ETC_DIR