| 1 | From bcff1129cf3bfd06d816e682911b9515fa163376 Mon Sep 17 00:00:00 2001
|
| 2 | From: Dudemanguy <[email protected]>
|
| 3 | Date: Sat, 18 Sep 2021 10:05:20 -0500
|
| 4 | Subject: [PATCH] configure: default to /run/user
|
| 5 |
|
| 6 | elogind (and presumably system-logind) uses /run/user. Copy them for
|
| 7 | consistency.
|
| 8 | ---
|
| 9 | configure | 2 +-
|
| 10 | pam_rundir.c | 2 +-
|
| 11 | 2 files changed, 2 insertions(+), 2 deletions(-)
|
| 12 |
|
| 13 | Patch-Source: https://gitea.artixlinux.org/artix/pam_rundir/commit/bcff1129cf3bfd06d816e682911b9515fa163376
|
| 14 |
|
| 15 | diff --git a/configure b/configure
|
| 16 | index 9a208d7..6bfbe8b 100755
|
| 17 | |
| 18 | |
| 19 | @@ -17,7 +17,7 @@ EOF
|
| 20 |
|
| 21 | prefix=/
|
| 22 | securedir=
|
| 23 | -parentdir=/run/users
|
| 24 | +parentdir=/run/user
|
| 25 | varname=XDG_RUNTIME_DIR
|
| 26 |
|
| 27 | cmdline="$0 $@"
|
| 28 | diff --git a/pam_rundir.c b/pam_rundir.c
|
| 29 | index f92c73e..3a50386 100644
|
| 30 | |
| 31 | |
| 32 | @@ -103,7 +103,7 @@ open_and_lock (const char *file)
|
| 33 | static inline void
|
| 34 | print_filename (char *s, int uid, int l)
|
| 35 | {
|
| 36 | - /* construct file name, e.g: "/run/users/.1000" */
|
| 37 | + /* construct file name, e.g: "/run/user/.1000" */
|
| 38 | memcpy (s, PARENT_DIR, sizeof (PARENT_DIR) - 1);
|
| 39 | s[sizeof (PARENT_DIR) - 1] = '/';
|
| 40 | s[sizeof (PARENT_DIR)] = '.';
|