From: bobbyboy5069 <106821778+bobbyboy5069@users.noreply.github.com> Date: Fri, 24 Jun 2022 20:02:15 +0000 (+0300) Subject: add padding to dates in issue file X-Git-Tag: v2.38.1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21a3b3324e70687377ea9a5f4aa6db13adb0328a;p=thirdparty%2Futil-linux.git add padding to dates in issue file Pad the day of the month so the length of the date string doesn't change. --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 22850786da..cecde2cdf6 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -2792,7 +2792,7 @@ static void output_special_char(struct issue *ie, localtime_r(&now, &tm); if (c == 'd') /* ISO 8601 */ - fprintf(ie->output, "%s %s %d %d", + fprintf(ie->output, "%s %s %2d %d", nl_langinfo(ABDAY_1 + tm.tm_wday), nl_langinfo(ABMON_1 + tm.tm_mon), tm.tm_mday,