From 89915a23a085d414bce61040364810be3975e261 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 24 Mar 2015 14:39:41 +0100 Subject: Don't use sudo directory, the timestamp format is different (Ticket#32) * modules/pam_timestamp/pam_timestamp.c: Change default timestamp directory. --- modules/pam_timestamp/pam_timestamp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/pam_timestamp/pam_timestamp.c') 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 #include #include +#include #include "hmacsha1.h" #include @@ -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 -- cgit v1.2.3