… | |
… | |
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 |