… | |
… | |
12 | * Copyright (c) 1997 Raul Garcia Garcia <rgg@tid.es> |
12 | * Copyright (c) 1997 Raul Garcia Garcia <rgg@tid.es> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
14 | * - extensive modifications |
14 | * - extensive modifications |
15 | * Copyright (c) 1999 D J Hawkey Jr <hawkeyd@visi.com> |
15 | * Copyright (c) 1999 D J Hawkey Jr <hawkeyd@visi.com> |
16 | * - lastlog support |
16 | * - lastlog support |
17 | * Copyright (c) 2004 Marc Lehmann <pcg@goof.com> |
17 | * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com> |
18 | * |
18 | * |
19 | * This program is free software; you can redistribute it and/or modify |
19 | * This program is free software; you can redistribute it and/or modify |
20 | * it under the terms of the GNU General Public License as published by |
20 | * it under the terms of the GNU General Public License as published by |
21 | * the Free Software Foundation; either version 2 of the License, or |
21 | * the Free Software Foundation; either version 2 of the License, or |
22 | * (at your option) any later version. |
22 | * (at your option) any later version. |
… | |
… | |
55 | |
55 | |
56 | /* |
56 | /* |
57 | * make and write utmp and wtmp entries |
57 | * make and write utmp and wtmp entries |
58 | */ |
58 | */ |
59 | void |
59 | void |
60 | rxvt_ptytty::login (int cmd_pid, bool login_shell, const char *hostname) |
60 | rxvt_ptytty_unix::login (int cmd_pid, bool login_shell, const char *hostname) |
61 | { |
61 | { |
62 | const char *pty = name; |
62 | const char *pty = name; |
63 | |
63 | |
64 | if (!pty || !*pty) |
64 | if (!pty || !*pty) |
65 | return; |
65 | return; |
… | |
… | |
225 | /* ------------------------------------------------------------------------- */ |
225 | /* ------------------------------------------------------------------------- */ |
226 | /* |
226 | /* |
227 | * remove utmp and wtmp entries |
227 | * remove utmp and wtmp entries |
228 | */ |
228 | */ |
229 | void |
229 | void |
230 | rxvt_ptytty::logout () |
230 | rxvt_ptytty_unix::logout () |
231 | { |
231 | { |
232 | if (!cmd_pid) |
232 | if (!cmd_pid) |
233 | return; |
233 | return; |
234 | |
234 | |
235 | #ifdef HAVE_STRUCT_UTMP |
235 | #ifdef HAVE_STRUCT_UTMP |