[debian-edu-commits] debian-edu/upstream/ 41/71: Make sure the user name of the user logging in is passed on to the hook scripts.

Petter Reinholdtsen pere at moszumanska.debian.org
Mon Jun 9 18:25:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository libpam-mklocaluser.

commit 01671e24fe6947a31c67e60ab97f4162a192acee
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed May 19 12:27:36 2010 +0000

    Make sure the user name of the user logging in is passed on to the
    hook scripts.
---
 debian/changelog     | 7 +++++++
 debian/pam-python.py | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f3d57c1..b0b481c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libpam-mklocaluser (0.3) UNRELEASED; urgency=low
+
+  * Make sure the user name of the user logging in is passed on to the
+    hook scripts.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Wed, 19 May 2010 14:24:57 +0200
+
 libpam-mklocaluser (0.2) unstable; urgency=low
 
   * Correct typo in pam-configs entry causing the PAM module to fail.
diff --git a/debian/pam-python.py b/debian/pam-python.py
index 43e473e..0e29d79 100755
--- a/debian/pam-python.py
+++ b/debian/pam-python.py
@@ -91,7 +91,7 @@ def check_and_create_localuser(pamh, user):
 
       # Hook for adjusting the freshly created home directory
       # XXX Should be rewritten in python, I guess
-      runcmd(pamh, "if [ -d /etc/mklocaluser.d ]; then /bin/run-parts /etc/mklocaluser.d ; fi")
+      runcmd(pamh, "if [ -d /etc/mklocaluser.d ]; then USER='%s' /bin/run-parts /etc/mklocaluser.d ; fi" % user)
 
       # Let the user know what is going on
       msg = pamh.Message(pamh.PAM_TEXT_INFO,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/libpam-mklocaluser.git



More information about the debian-edu-commits mailing list