[debian-edu-commits] debian-edu/upstream/ 42/71: Make sure the path to the original home directory and 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 6ddbb516e8ffbbc04a281fc8596e3a79489b1bce
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed May 19 12:35:51 2010 +0000

    Make sure the path to the original home directory and the user
    name of the user logging in is passed on to the hook scripts.
---
 debian/changelog     | 4 ++--
 debian/pam-python.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b0b481c..9a68871 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,7 @@
 libpam-mklocaluser (0.3) UNRELEASED; urgency=low
 
-  * Make sure the user name of the user logging in is passed on to the
-    hook scripts.
+  * Make sure the path to the original home directory and 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
 
diff --git a/debian/pam-python.py b/debian/pam-python.py
index 0e29d79..284d9f1 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 USER='%s' /bin/run-parts /etc/mklocaluser.d ; fi" % user)
+      runcmd(pamh, "if [ -d /etc/mklocaluser.d ]; then ORIGHOMEDIR='%s' USER='%s' /bin/run-parts /etc/mklocaluser.d ; fi" % (homedir, 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