Lines 819-824
Link Here
|
819 |
for (; args[i]; i++) |
819 |
for (; args[i]; i++) |
820 |
WRITELOG(DEBUG, "Starting text session with argument #%d: %s\n", i, args[i]); |
820 |
WRITELOG(DEBUG, "Starting text session with argument #%d: %s\n", i, args[i]); |
821 |
|
821 |
|
|
|
822 |
#ifdef USE_PAM |
823 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
824 |
pam_open_session(pamh, 0); |
825 |
#else |
826 |
LogEvent(pw, OPEN_SESSION); |
827 |
#endif |
828 |
|
822 |
proc_id = fork(); |
829 |
proc_id = fork(); |
823 |
if (proc_id == -1) |
830 |
if (proc_id == -1) |
824 |
{ |
831 |
{ |
Lines 830-842
Link Here
|
830 |
{ |
837 |
{ |
831 |
/* write to system logs */ |
838 |
/* write to system logs */ |
832 |
dolastlog(pw, 0); |
839 |
dolastlog(pw, 0); |
833 |
add_utmp_wtmp_entry(username); |
840 |
|
|
|
841 |
add_utmp_wtmp_entry(username); |
842 |
#if 0 |
834 |
#ifdef USE_PAM |
843 |
#ifdef USE_PAM |
835 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
844 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
836 |
pam_open_session(pamh, 0); |
845 |
pam_open_session(pamh, 0); |
837 |
#else |
846 |
#else |
838 |
LogEvent(pw, OPEN_SESSION); |
847 |
LogEvent(pw, OPEN_SESSION); |
839 |
#endif |
848 |
#endif |
|
|
849 |
#endif |
840 |
|
850 |
|
841 |
/* remove last session file from user home dir, as previous qingy versions |
851 |
/* remove last session file from user home dir, as previous qingy versions |
842 |
created it with root ownership |
852 |
created it with root ownership |
Lines 1011-1016
Link Here
|
1011 |
free(my_x_server); |
1021 |
free(my_x_server); |
1012 |
free(vt); |
1022 |
free(vt); |
1013 |
|
1023 |
|
|
|
1024 |
#ifdef USE_PAM |
1025 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
1026 |
pam_open_session(pamh, 0); |
1027 |
#else |
1028 |
LogEvent(pw, OPEN_SESSION); |
1029 |
#endif |
1030 |
|
1014 |
proc_id = fork(); |
1031 |
proc_id = fork(); |
1015 |
if (proc_id == -1) |
1032 |
if (proc_id == -1) |
1016 |
{ |
1033 |
{ |
Lines 1025-1036
Link Here
|
1025 |
/* write to system logs */ |
1042 |
/* write to system logs */ |
1026 |
dolastlog(pw, 1); |
1043 |
dolastlog(pw, 1); |
1027 |
add_utmp_wtmp_entry(username); |
1044 |
add_utmp_wtmp_entry(username); |
|
|
1045 |
#if 0 |
1028 |
#ifdef USE_PAM |
1046 |
#ifdef USE_PAM |
1029 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
1047 |
//pam_setcred(pamh, PAM_ESTABLISH_CRED); |
1030 |
pam_open_session(pamh, 0); |
1048 |
pam_open_session(pamh, 0); |
1031 |
#else |
1049 |
#else |
1032 |
LogEvent(pw, OPEN_SESSION); |
1050 |
LogEvent(pw, OPEN_SESSION); |
1033 |
#endif |
1051 |
#endif |
|
|
1052 |
#endif |
1034 |
|
1053 |
|
1035 |
/* remove last session file from user home dir, as previous qingy versions |
1054 |
/* remove last session file from user home dir, as previous qingy versions |
1036 |
created it with root ownership |
1055 |
created it with root ownership |