From: Todd C. Miller Date: Mon, 7 Sep 2009 14:18:06 +0000 (+0000) Subject: ID= -> TSID= for transcript ID X-Git-Tag: SUDO_1_7_3~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0040571c97b3ac1fe960bee6e5db968f5ca64ffd;p=sudo ID= -> TSID= for transcript ID --- diff --git a/logging.c b/logging.c index aacdd8c90..af01f3c8b 100644 --- a/logging.c +++ b/logging.c @@ -658,7 +658,7 @@ get_timestr() #define LL_GROUP_STR "GROUP=" #define LL_ENV_STR "ENV=" #define LL_CMND_STR "COMMAND=" -#define LL_ID_STR "ID=" +#define LL_TSID_STR "TSID=" /* * Allocate and fill in a new logline. @@ -689,7 +689,7 @@ new_logline(message, serrno) if (runas_gr != NULL) len += sizeof(LL_GROUP_STR) + 2 + strlen(runas_gr->gr_name); if (sudo_user.sessid[0] != '\0') - len += sizeof(LL_ID_STR) + 2 + strlen(sudo_user.sessid); + len += sizeof(LL_TSID_STR) + 2 + strlen(sudo_user.sessid); if (sudo_user.env_vars != NULL) { size_t evlen = 0; struct list_member *cur; @@ -744,7 +744,7 @@ new_logline(message, serrno) goto toobig; } if (sudo_user.sessid[0] != '\0') { - if (strlcat(line, LL_ID_STR, len) >= len || + if (strlcat(line, LL_TSID_STR, len) >= len || strlcat(line, sudo_user.sessid, len) >= len || strlcat(line, " ; ", len) >= len) goto toobig;