* precalculate the position of chkpwd like we do it for the rest.
[citadel.git] / citadel / user_ops.c
index 13e8db773c040a51bbc0c0abf675b325bee75a76..4b23c646fa0284cdea803291a9bc16b49265ca6b 100644 (file)
@@ -47,6 +47,7 @@
 #include "config.h"
 #include "tools.h"
 #include "citserver.h"
+#include "citadel_dirs.h"
 #include "genstamp.h"
 
 /*
@@ -608,8 +609,8 @@ static int validpw(uid_t uid, const char *pass)
                }
                close(pipev[0]);
 
-               execl(CTDLDIR "/chkpwd", CTDLDIR "/chkpwd", NULL);
-               perror(CTDLDIR "/chkpwd");
+               execl(file_chkpwd, file_chkpwd, NULL);
+               perror(file_chkpwd);
                exit(1);
        }