diff options
author | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
commit | 2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9 (patch) | |
tree | 58bea5a34619877eb8346d2fea79c60e9cb0def0 /lib/libpam | |
parent | dfcc7c385f2569bde1e4bd62a5c78a40b557608f (diff) | |
download | FreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.zip FreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.tar.gz |
Several refinements to libulog's API.
- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.
Diffstat (limited to 'lib/libpam')
-rw-r--r-- | lib/libpam/modules/pam_lastlog/pam_lastlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.c b/lib/libpam/modules/pam_lastlog/pam_lastlog.c index a51432b..47c1e99 100644 --- a/lib/libpam/modules/pam_lastlog/pam_lastlog.c +++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.c @@ -91,7 +91,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags, } if ((flags & PAM_SILENT) == 0) { - if (ulog_setutxfile(UTXF_LASTLOG, NULL) != 0) { + if (ulog_setutxfile(UTXI_USER, NULL) != 0) { PAM_LOG("Failed to open lastlog database"); } else { utx = ulog_getutxuser(user); |