summaryrefslogtreecommitdiff
path: root/modules/pam_timestamp
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2020-03-31 11:18:13 +0200
committerTomáš Mráz <t8m@users.noreply.github.com>2020-03-31 12:39:51 +0200
commit9b62f2ed3be1731581ad8f4b7e5cefd8fd030085 (patch)
tree45209f38bc2794bc968249256e7d577f72fc6ba8 /modules/pam_timestamp
parentcf4845be8b792a05da5698e07243b89ec0368b61 (diff)
pam_timestamp: Fix // in TIMESTAMPDIR
_PATH_VARRUN already provides trailing slash for building paths Fixes: $ strings /usr/lib64/security/pam_timestamp.so | grep /run/ /var/run//pam_timestamp /var/run//pam_timestamp/_pam_timestamp_key
Diffstat (limited to 'modules/pam_timestamp')
-rw-r--r--modules/pam_timestamp/pam_timestamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c
index 9790fde0..420ce9eb 100644
--- a/modules/pam_timestamp/pam_timestamp.c
+++ b/modules/pam_timestamp/pam_timestamp.c
@@ -71,7 +71,7 @@
* for the timestamp_timeout parameter. */
#define DEFAULT_TIMESTAMP_TIMEOUT (5 * 60)
#define MODULE "pam_timestamp"
-#define TIMESTAMPDIR _PATH_VARRUN "/" MODULE
+#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