]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - term-utils/agetty.c
add padding to dates in issue file
[thirdparty/util-linux.git] / term-utils / agetty.c
index 45e25313322993face6bb59ff792bd0c69c7b8db..31a0c52e14df8f43e54f26d0f611df231e8b6849 100644 (file)
@@ -2805,7 +2805,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,