Home detection fix master
authorHarvie <tomas@mudrunka.cz>
Sat, 3 Dec 2011 05:54:13 +0000 (06:54 +0100)
committerHarvie <tomas@mudrunka.cz>
Sat, 3 Dec 2011 05:54:13 +0000 (06:54 +0100)
src/mypam.c

index 3bccdfdd673ec0ba7a802369e8701f96857fc2e2..ab80b302788358b29e6a3552b2cebe9ccafc7354 100644 (file)
@@ -23,7 +23,7 @@ PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, cons
        system("mkdir -p \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
        system("chown root:root \"$JAIL_DIR/$JAIL_USER\"");
        system("chown \"$JAIL_USER:$JAIL_USER\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
-       system("mountpoint -q \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\" || mount -o bind \"$HOME\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
+       system("mountpoint -q \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\" || mount -o bind \"/home/$JAIL_USER\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
 
        return PAM_SUCCESS; //PAM_SESSION_ERR | PAM_SUCCESS
 }
This page took 0.105511 seconds and 4 git commands to generate.