From b831104e1a5526821a845c70a6b226133a61ce8f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 13 Nov 1998 19:10:21 +0000 Subject: [PATCH] when using tty tickets make it user:tty not user.tty as a username could have a '.' in it --- check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.c b/check.c index 877326116..3cff43784 100644 --- a/check.c +++ b/check.c @@ -241,7 +241,7 @@ static int check_timestamp() _PATH_SUDO_TIMEDIR, user_name, p); exit(1); } - (void) sprintf(timestampfile, "%s/%s.%s", _PATH_SUDO_TIMEDIR, user_name, p); + (void) sprintf(timestampfile, "%s/%s:%s", _PATH_SUDO_TIMEDIR, user_name, p); #else if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 > sizeof(timestampfile)) { -- 2.40.0