summaryrefslogtreecommitdiff
path: root/src/pam-module.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-01 15:25:46 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-01 15:25:46 +0200
commitbb29785e0df6a7cf07db0259a60bc1f3b4814cb4 (patch)
tree367b7e34264fd5da71137af014c195dcff90fbcb /src/pam-module.c
parenta9f470b802f95e6bf42e19ed300dfde63204797d (diff)
general: replace a few uses of /var/run by /run
Diffstat (limited to 'src/pam-module.c')
-rw-r--r--src/pam-module.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pam-module.c b/src/pam-module.c
index 3a5404db4..6486546e6 100644
--- a/src/pam-module.c
+++ b/src/pam-module.c
@@ -239,11 +239,10 @@ static uint64_t get_session_id(int *mode) {
ssize_t r;
/* We do a bit of endianess swapping here, just to be
- * sure. /var should be machine specific anyway, and
- * /var/run even mounted from tmpfs, so this
- * byteswapping should really not be necessary. But
- * then again, you never know, so let's avoid any
- * risk. */
+ * sure. /run should be machine specific anyway, and
+ * even mounted from tmpfs, so this byteswapping
+ * should really not be necessary. But then again, you
+ * never know, so let's avoid any risk. */
if (loop_read(fd, &counter, sizeof(counter), false) != sizeof(counter))
counter = 1;
@@ -435,7 +434,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
goto finish;
}
- /* Create /var/run/$USER */
+ /* Create /run/user/$USER */
free(buf);
if (asprintf(&buf, RUNTIME_DIR "/user/%s", username) < 0) {
r = PAM_BUF_ERR;