[23093] in Source-Commits
/svn/athena r22756 - in trunk/debathena/debathena/libpam-mktemp: . debian
daemon@ATHENA.MIT.EDU (andersk@MIT.EDU)
Sun Feb 17 21:08:36 2008
Date: Sun, 17 Feb 2008 21:08:03 -0500 (EST)
From: andersk@MIT.EDU
Message-Id: <200802180208.VAA28560@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: andersk
Date: 2008-02-17 21:08:02 -0500 (Sun, 17 Feb 2008)
New Revision: 22756
Modified:
trunk/debathena/debathena/libpam-mktemp/debian/changelog
trunk/debathena/debathena/libpam-mktemp/debian/control
trunk/debathena/debathena/libpam-mktemp/debian/control.in
trunk/debathena/debathena/libpam-mktemp/pam_mktemp.c
Log:
* pam_mktemp.c: Accept dir, not dir*.
* debian/control.in: Clarify description.
Modified: trunk/debathena/debathena/libpam-mktemp/debian/changelog
===================================================================
--- trunk/debathena/debathena/libpam-mktemp/debian/changelog 2008-02-18 00:40:53 UTC (rev 22755)
+++ trunk/debathena/debathena/libpam-mktemp/debian/changelog 2008-02-18 02:08:02 UTC (rev 22756)
@@ -1,6 +1,6 @@
libpam-mktemp (0.1-0debathena1) unstable; urgency=low
- * Initial Release.
+ * Initial release.
* This package generalizes and replaces libpam-xauthority.
-- Tim Abbott <tabbott@mit.edu> Tue, 29 Jan 2008 22:20:30 -0500
Modified: trunk/debathena/debathena/libpam-mktemp/debian/control
===================================================================
--- trunk/debathena/debathena/libpam-mktemp/debian/control 2008-02-18 00:40:53 UTC (rev 22755)
+++ trunk/debathena/debathena/libpam-mktemp/debian/control 2008-02-18 02:08:02 UTC (rev 22756)
@@ -8,7 +8,10 @@
Package: libpam-mktemp
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: PAM module to call mkstemp
+Description: PAM module to create temporary session files
+ This PAM module securely creates a temporary file or directory with
+ mkstemp, and sets an environment variable to point to its location.
+ .
A common use is to set the XAUTHORITY environment variable to a
securely created temporary file, for use when home directories are in
a networked filesystem.
Modified: trunk/debathena/debathena/libpam-mktemp/debian/control.in
===================================================================
--- trunk/debathena/debathena/libpam-mktemp/debian/control.in 2008-02-18 00:40:53 UTC (rev 22755)
+++ trunk/debathena/debathena/libpam-mktemp/debian/control.in 2008-02-18 02:08:02 UTC (rev 22756)
@@ -8,7 +8,10 @@
Package: libpam-mktemp
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: PAM module to call mkstemp
+Description: PAM module to create temporary session files
+ This PAM module securely creates a temporary file or directory with
+ mkstemp, and sets an environment variable to point to its location.
+ .
A common use is to set the XAUTHORITY environment variable to a
securely created temporary file, for use when home directories are in
a networked filesystem.
Modified: trunk/debathena/debathena/libpam-mktemp/pam_mktemp.c
===================================================================
--- trunk/debathena/debathena/libpam-mktemp/pam_mktemp.c 2008-02-18 00:40:53 UTC (rev 22755)
+++ trunk/debathena/debathena/libpam-mktemp/pam_mktemp.c 2008-02-18 02:08:02 UTC (rev 22756)
@@ -58,7 +58,7 @@
const char *prefix = "/tmp/tempfile";
const char *var = NULL;
int fd;
- int dir=0;
+ int dir = 0;
for (i = 0; i < argc; i++) {
if (strcmp(argv[i], "debug") == 0)
@@ -67,7 +67,7 @@
prefix = argv[i] + 7;
else if (strncmp(argv[i], "var=", 4) == 0)
var = argv[i] + 4;
- else if (strncmp(argv[i], "dir", 3) == 0)
+ else if (strcmp(argv[i], "dir") == 0)
dir = 1;
}
@@ -151,7 +151,6 @@
int i;
int debug = 0;
const char *mktemp_buf;
- const char *dir = "/tmp";
const char *var = NULL;
for (i = 0; i < argc; i++) {