projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb1711
)
missing directory calculations
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 17 Jan 2006 12:44:39 +0000
(12:44 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 17 Jan 2006 12:44:39 +0000
(12:44 +0000)
citadel/chkpwd.c
patch
|
blob
|
history
diff --git
a/citadel/chkpwd.c
b/citadel/chkpwd.c
index ece82c2a1129e90d53447f5f11bf31f26a13b3d0..3779cd0e7b5a693d036e796223d341f782b69379 100644
(file)
--- a/
citadel/chkpwd.c
+++ b/
citadel/chkpwd.c
@@
-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();