]> granicus.if.org Git - linux-pam/commitdiff
Don't use sudo directory, the timestamp format is different (Ticket#32)
authorThorsten Kukuk <kukuk@thkukuk.de>
Tue, 24 Mar 2015 13:39:41 +0000 (14:39 +0100)
committerThorsten Kukuk <kukuk@thkukuk.de>
Tue, 24 Mar 2015 13:39:41 +0000 (14:39 +0100)
* modules/pam_timestamp/pam_timestamp.c: Change default timestamp directory.

modules/pam_timestamp/pam_timestamp.c

index b3f08b1ff388f47c9b89fb0f6876e37b7cd242f6..1bf0e84ba4e770f41da107bfc6dbf083f63f5d8d 100644 (file)
@@ -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