Date: Mon, 23 Mar 2026 21:30:28 +0000
From: bugzilla-noreply@freebsd.org
To: bugs@FreeBSD.org
Subject: [Bug 294003] libpam/modules/pam_xdg: #define BASE_RUNTIME_DIR_PREFIX "/var/run/xdg" add trailing slash ("/")?
Message-ID: <bug-294003-227-1TqlNv6db1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294003-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294003 Benjamin Takacs <nimaje+fbz@bureaucracy.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nimaje+fbz@bureaucracy.de --- Comment #1 from Benjamin Takacs <nimaje+fbz@bureaucracy.de> --- hm, that seems strange. The "Can't mkdir" error message most likly comes from line 85 in pam_xdg.c, but there it failed to create the base direcotry, so the path ends with "xdg" and that "pamtester" string doesn't belong to the path. That also matches pamtesters code, as pamtester prints its name, a colon and then the pam error message when some pam function failed. So a missing newline after the error message from pam_xdg makes that confusing, but no idea why that doesn't get printed. (openpam_ttyconv should print it) Neither open("/var/run/xdg", O_DIRECTORY) nor mkdir("/var/run/xdg") should need that extra slash and I don't see how adding that could have fixed your problem. All later calls use *at functions with the directory descriptor. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294003-227-1TqlNv6db1>
