Fix typo/thinko that prevented "Defaults !tty_tickets" from working.

This commit is contained in:
Todd C. Miller
2014-03-13 13:38:42 -06:00
parent 35c41deb41
commit 403a48da40

View File

@@ -403,7 +403,7 @@ timestamp_status(struct passwd *pw)
timestamp_key.flags = TS_ANYUID; timestamp_key.flags = TS_ANYUID;
} }
timestamp_key.sid = user_sid; timestamp_key.sid = user_sid;
if (def_timestampdir) { if (def_tty_tickets) {
if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) { if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) {
/* tty-based time stamp */ /* tty-based time stamp */
timestamp_key.type = TS_TTY; timestamp_key.type = TS_TTY;
@@ -537,7 +537,7 @@ remove_timestamp(bool unlink_it)
timestamp_key.size = sizeof(timestamp_key); timestamp_key.size = sizeof(timestamp_key);
timestamp_key.type = TS_GLOBAL; /* may be overriden below */ timestamp_key.type = TS_GLOBAL; /* may be overriden below */
timestamp_key.flags = TS_ANYUID; timestamp_key.flags = TS_ANYUID;
if (def_timestampdir) { if (def_tty_tickets) {
struct stat sb; struct stat sb;
if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) { if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) {
/* tty-based time stamp */ /* tty-based time stamp */