projects/aports·blob master · refs

40 lines · 1.2 KiB

1From bcff1129cf3bfd06d816e682911b9515fa163376 Mon Sep 17 00:00:00 2001
2From: Dudemanguy <[email protected]>
3Date: Sat, 18 Sep 2021 10:05:20 -0500
4Subject: [PATCH] configure: default to /run/user
5
6elogind (and presumably system-logind) uses /run/user. Copy them for
7consistency.
8---
9 configure | 2 +-
10 pam_rundir.c | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13Patch-Source: https://gitea.artixlinux.org/artix/pam_rundir/commit/bcff1129cf3bfd06d816e682911b9515fa163376
14
15diff --git a/configure b/configure
16index 9a208d7..6bfbe8b 100755
17--- a/configure
18+++ b/configure
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 $@"
28diff --git a/pam_rundir.c b/pam_rundir.c
29index f92c73e..3a50386 100644
30--- a/pam_rundir.c
31+++ b/pam_rundir.c
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)] = '.';