diff options
author | Tim Bishop <tdb@FreeBSD.org> | 2006-01-11 11:58:44 +0000 |
---|---|---|
committer | Tim Bishop <tdb@FreeBSD.org> | 2006-01-11 11:58:44 +0000 |
commit | 017e20b4b22d6ba8676a85eaae0b4cd08c0150de (patch) | |
tree | 3e8e52788a27fcff425ef8dcead7c2c6d0a0a9a5 /x11/xlockmore | |
parent | - Update to 1.0.1 (diff) |
- Update to 5.21
PR: 91626
Submitted by: UMENO Takashi <umeno@rr.iij4u.or.jp>
Notes
Notes:
svn path=/head/; revision=153255
Diffstat (limited to 'x11/xlockmore')
-rw-r--r-- | x11/xlockmore/Makefile | 3 | ||||
-rw-r--r-- | x11/xlockmore/distinfo | 6 | ||||
-rw-r--r-- | x11/xlockmore/files/patch-pam-passwd.c | 62 | ||||
-rw-r--r-- | x11/xlockmore/files/patch-pam-xlock.c | 17 |
4 files changed, 4 insertions, 84 deletions
diff --git a/x11/xlockmore/Makefile b/x11/xlockmore/Makefile index 8185360b9f5e..f664922eb739 100644 --- a/x11/xlockmore/Makefile +++ b/x11/xlockmore/Makefile @@ -6,8 +6,7 @@ # PORTNAME= xlockmore -PORTVERSION= 5.20.1 -PORTREVISION= 1 +PORTVERSION= 5.21 CATEGORIES?= x11 MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \ http://www.tux.org/~bagleyd/latest/ diff --git a/x11/xlockmore/distinfo b/x11/xlockmore/distinfo index 6752a5e56641..db9ce6d3603b 100644 --- a/x11/xlockmore/distinfo +++ b/x11/xlockmore/distinfo @@ -1,3 +1,3 @@ -MD5 (xlockmore-5.20.1.tar.bz2) = f70b24437d44cfa10ca259d00608deef -SHA256 (xlockmore-5.20.1.tar.bz2) = 772c1da9a125ca9664e3388af447c1dce35c8b370021c1b07dbb9dffd7ba9e41 -SIZE (xlockmore-5.20.1.tar.bz2) = 1768913 +MD5 (xlockmore-5.21.tar.bz2) = eefe878d7efaa982ee53553c78534315 +SHA256 (xlockmore-5.21.tar.bz2) = 1d5978d0577991f4bcff3a569e3b17e328b1588d946a7b4afad3def9cc40bfbd +SIZE (xlockmore-5.21.tar.bz2) = 1794442 diff --git a/x11/xlockmore/files/patch-pam-passwd.c b/x11/xlockmore/files/patch-pam-passwd.c deleted file mode 100644 index e2f4e4341ebe..000000000000 --- a/x11/xlockmore/files/patch-pam-passwd.c +++ /dev/null @@ -1,62 +0,0 @@ ---- ../xlockmore-5.20.1.orig/xlock/passwd.c Mon Sep 26 17:11:20 2005 -+++ xlock/passwd.c Mon Dec 12 15:04:31 2005 -@@ -304,6 +304,16 @@ - reply = (struct pam_response *) malloc(sizeof (struct pam_response) * - num_msg); - -+// reply[] members is not initialized! -+// As a result - abort trap when PAM tries to free reply structure -+// after PAM_ERROR_MSG processing. -+ -+// So I just initialize reply here with default values and drop -+// initialization from code below (if code matches). -+ -+ reply[replies].resp_retcode = PAM_SUCCESS; // be optimistic -+ reply[replies].resp = NULL; -+ - if (!reply) - return PAM_CONV_ERR; - -@@ -325,7 +335,6 @@ - } - else - { -- reply[replies].resp_retcode = PAM_SUCCESS; - reply[replies].resp = COPY_STRING(PAM_password); - } - #ifdef DEBUG -@@ -340,11 +349,6 @@ - { - PAM_putText( msg[replies], &reply[replies], False ); - } -- else -- { -- reply[replies].resp_retcode = PAM_SUCCESS; -- reply[replies].resp = NULL; -- } - #ifdef DEBUG - (void) printf( "Back From PAM_putText: PAM_PROMPT_ECHO_ON\n" ); - (void) printf( "Response is: (%s)\n, Return Code is: (%d)\n", -@@ -357,11 +361,7 @@ - { - PAM_putText( msg[replies], &reply[replies], False ); - } -- else -- { -- reply[replies].resp_retcode = PAM_SUCCESS; -- reply[replies].resp = NULL; -- } -+ /* PAM frees resp */ - #ifdef DEBUG - (void) printf( "Back From PAM_putText: PAM_PROMPT_ECHO_ON\n" ); - (void) printf( "Response is: (%s)\n, Return Code is: (%d)\n", -@@ -1205,8 +1205,7 @@ - pam_error = pam_authenticate(pamh, 0); - if (pam_error != PAM_SUCCESS) { - if (!allowroot) { -- pam_end(pamh, 0); -- return False; -+ PAM_BAIL; - } - - /* Try as root; bail if no success there either */ diff --git a/x11/xlockmore/files/patch-pam-xlock.c b/x11/xlockmore/files/patch-pam-xlock.c deleted file mode 100644 index cd4df5f0f2dd..000000000000 --- a/x11/xlockmore/files/patch-pam-xlock.c +++ /dev/null @@ -1,17 +0,0 @@ ---- ../xlockmore-5.20.1.orig/xlock/xlock.c Thu Oct 27 04:09:29 2005 -+++ xlock/xlock.c Mon Dec 12 14:56:05 2005 -@@ -3316,7 +3316,14 @@ - #ifdef USE_VTLOCK - if (!vtlock) - #endif -+#ifdef BAD_PAM -+ (void) seteuid(ruid); -+#else - (void) setuid(ruid); -+#endif -+// #ifdef BAD_PAM ... #endif above will be added to prevent xlock from -+// dropping privileges when using PAM modules, that needs root rights -+// (pam_unix e.g.) - - #if 0 - /* synchronize -- so I am aware of errors immediately */ |