diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2015-03-24 14:39:41 +0100 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2015-03-24 14:39:41 +0100 |
commit | 89915a23a085d414bce61040364810be3975e261 (patch) | |
tree | c9652535ded0c89bbd284b685013370e26f46c73 | |
parent | eb9cd6f43132b2a7b54c621b4a80adf176628d20 (diff) | |
download | pam-89915a23a085d414bce61040364810be3975e261.tar.gz pam-89915a23a085d414bce61040364810be3975e261.tar.bz2 pam-89915a23a085d414bce61040364810be3975e261.zip |
Don't use sudo directory, the timestamp format is different (Ticket#32)
* modules/pam_timestamp/pam_timestamp.c: Change default timestamp directory.
-rw-r--r-- | modules/pam_timestamp/pam_timestamp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c index b3f08b1f..1bf0e84b 100644 --- a/modules/pam_timestamp/pam_timestamp.c +++ b/modules/pam_timestamp/pam_timestamp.c @@ -58,6 +58,7 @@ #include <unistd.h> #include <utmp.h> #include <syslog.h> +#include <paths.h> #include "hmacsha1.h" #include <security/pam_modules.h> @@ -69,7 +70,7 @@ * for the timestamp_timeout parameter. */ #define DEFAULT_TIMESTAMP_TIMEOUT (5 * 60) #define MODULE "pam_timestamp" -#define TIMESTAMPDIR "/var/run/sudo" +#define TIMESTAMPDIR _PATH_VARRUN "/" MODULE #define TIMESTAMPKEY TIMESTAMPDIR "/_pam_timestamp_key" /* Various buffers we use need to be at least as large as either PATH_MAX or |