- wrong orig code

This commit is contained in:
Tomáš Mráz 2007-08-24 13:35:26 +00:00
parent 9e1a698edf
commit 66eb83163f

View File

@ -1,14 +1,13 @@
diff -up Linux-PAM-0.99.7.1/modules/pam_namespace/namespace.init.namespace_homedir Linux-PAM-0.99.7.1/modules/pam_namespace/namespace.init diff -up Linux-PAM-0.99.8.1/modules/pam_namespace/namespace.init.homedir Linux-PAM-0.99.8.1/modules/pam_namespace/namespace.init
--- Linux-PAM-0.99.7.1/modules/pam_namespace/namespace.init.namespace_homedir 2007-08-23 15:49:45.000000000 -0400 --- Linux-PAM-0.99.8.1/modules/pam_namespace/namespace.init.homedir 2007-08-24 10:40:46.000000000 +0200
+++ Linux-PAM-0.99.7.1/modules/pam_namespace/namespace.init 2007-08-23 15:51:56.000000000 -0400 +++ Linux-PAM-0.99.8.1/modules/pam_namespace/namespace.init 2007-08-24 15:33:52.000000000 +0200
@@ -1,6 +1,23 @@ @@ -1,9 +1,24 @@
#!/bin/sh -p #!/bin/sh -p
-# This is only a boilerplate for the instance initialization script. -# This is only a boilerplate for the instance initialization script.
-# It receives polydir path as $1 and the instance path as $2. # It receives polydir path as $1, the instance path as $2,
+# It receives polydir path as $1 and the instance path as $2, # a flag whether the instance dir was newly created (0 - no, 1 - yes) in $3,
+# $3 is an indicatory whether $2 is a newly created directory, # and user name in $4.
+# $4 is the user who is logging in. #
+#
+# The following section will copy the contents of /etc/skel if this is a +# The following section will copy the contents of /etc/skel if this is a
+# newly created home directory. +# newly created home directory.
+if [ "$3" = 1 ]; then +if [ "$3" = 1 ]; then
@ -24,6 +23,7 @@ diff -up Linux-PAM-0.99.7.1/modules/pam_namespace/namespace.init.namespace_homed
+ chmod ${mode:-700} "$homedir" + chmod ${mode:-700} "$homedir"
+ fi + fi
+fi +fi
# +#
# If you intend to polyinstantiate /tmp and you also want to use the X windows # If you intend to polyinstantiate /tmp and you also want to use the X windows
# environment, you will have to use this script to bind mount the socket that # environment, you will have to use this script to bind mount the socket that
# is used by the X server to communicate with its clients. X server places