From: Todd C. Miller Date: Fri, 13 Nov 1998 19:10:21 +0000 (+0000) Subject: when using tty tickets make it user:tty not user.tty as a username X-Git-Tag: SUDO_1_5_7~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b831104e1a5526821a845c70a6b226133a61ce8f;p=sudo when using tty tickets make it user:tty not user.tty as a username could have a '.' in it --- 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)) {