missing directory calculations
authorWilfried Göesgens <willi@citadel.org>
Tue, 17 Jan 2006 12:44:39 +0000 (12:44 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 17 Jan 2006 12:44:39 +0000 (12:44 +0000)
citadel/chkpwd.c

index ece82c2a1129e90d53447f5f11bf31f26a13b3d0..3779cd0e7b5a693d036e796223d341f782b69379 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "auth.h"
 #include "config.h"
+#include "citadel_dirs.h"
 #include "citadel.h"
 
 int main(void)
@@ -24,7 +25,13 @@ int main(void)
   uid_t uid;
   struct passwd *pw;
   char buf[SIZ];
+  int relh=0;
+  int home=0;
+  char relhome[PATH_MAX]="";
+  char ctdldir[PATH_MAX]=CTDLDIR;
 
+  /* TODO: should we be able to calculate relative dirs? */
+  calc_dirs_n_files(relh, home, relhome, ctdldir);
   get_config();
   uid = getuid();