… | |
… | |
203 | # endif |
203 | # endif |
204 | } |
204 | } |
205 | #endif |
205 | #endif |
206 | |
206 | |
207 | #ifdef WTMP_SUPPORT |
207 | #ifdef WTMP_SUPPORT |
|
|
208 | #ifdef LOG_ONLY_ON_LOGIN |
208 | if (login_shell) |
209 | if (login_shell) |
|
|
210 | #endif |
209 | { |
211 | { |
210 | # ifdef HAVE_STRUCT_UTMP |
212 | # ifdef HAVE_STRUCT_UTMP |
211 | # ifdef HAVE_UPDWTMP |
213 | # ifdef HAVE_UPDWTMP |
212 | updwtmp (RXVT_WTMP_FILE, ut); |
214 | updwtmp (RXVT_WTMP_FILE, ut); |
213 | # else |
215 | # else |
… | |
… | |
218 | updwtmpx (RXVT_WTMPX_FILE, utx); |
220 | updwtmpx (RXVT_WTMPX_FILE, utx); |
219 | # endif |
221 | # endif |
220 | } |
222 | } |
221 | #endif |
223 | #endif |
222 | #if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE) |
224 | #if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE) |
|
|
225 | #ifdef LOG_ONLY_ON_LOGIN |
223 | if (login_shell) |
226 | if (login_shell) |
|
|
227 | #endif |
224 | rxvt_update_lastlog (RXVT_LASTLOG_FILE, pty, hostname); |
228 | rxvt_update_lastlog (RXVT_LASTLOG_FILE, pty, hostname); |
225 | #endif |
229 | #endif |
226 | } |
230 | } |
227 | |
231 | |
228 | /* ------------------------------------------------------------------------- */ |
232 | /* ------------------------------------------------------------------------- */ |
… | |
… | |
277 | |
281 | |
278 | /* |
282 | /* |
279 | * Write ending wtmp entry |
283 | * Write ending wtmp entry |
280 | */ |
284 | */ |
281 | #ifdef WTMP_SUPPORT |
285 | #ifdef WTMP_SUPPORT |
|
|
286 | #ifdef LOG_ONLY_ON_LOGIN |
282 | if (login_shell) |
287 | if (login_shell) |
|
|
288 | #endif |
283 | { |
289 | { |
284 | # ifdef HAVE_STRUCT_UTMP |
290 | # ifdef HAVE_STRUCT_UTMP |
285 | # ifdef HAVE_UPDWTMP |
291 | # ifdef HAVE_UPDWTMP |
286 | updwtmp (RXVT_WTMP_FILE, ut); |
292 | updwtmp (RXVT_WTMP_FILE, ut); |
287 | # else |
293 | # else |
… | |
… | |
441 | # endif /* HAVE_STRUCT_LASTLOG */ |
447 | # endif /* HAVE_STRUCT_LASTLOG */ |
442 | } |
448 | } |
443 | #endif /* LASTLOG_SUPPORT */ |
449 | #endif /* LASTLOG_SUPPORT */ |
444 | /* ------------------------------------------------------------------------- */ |
450 | /* ------------------------------------------------------------------------- */ |
445 | |
451 | |
|
|
452 | #else |
|
|
453 | void |
|
|
454 | rxvt_ptytty_unix::login (int cmd_pid, bool login_shell, const char *hostname) |
|
|
455 | { |
|
|
456 | } |
446 | #endif /* UTMP_SUPPORT */ |
457 | #endif /* UTMP_SUPPORT */ |