summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-18 04:14:54 +0000
committerdg <dg@FreeBSD.org>1994-09-18 04:14:54 +0000
commit8d2ab06cf5c4db438df84df9409b348869192508 (patch)
tree6596ec3e0291c14c42d664c2d29194aeee8023b1 /libexec
parentd7b47a496164bd3580e10be65c2836b28339fd5a (diff)
downloadFreeBSD-src-8d2ab06cf5c4db438df84df9409b348869192508.zip
FreeBSD-src-8d2ab06cf5c4db438df84df9409b348869192508.tar.gz
Fix from John Kohl:
/usr/libexec/getty doesn't properly interpret the '%d' escape. It tries to use %P to get AM or PM, but instead all it gets is "P". Submitted by: John Kohl
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 4e47a45..3a0336a 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -458,7 +458,7 @@ putf(cp)
break;
case 'd': {
- static char fmt[] = "%l:% %P on %A, %d %B %Y";
+ static char fmt[] = "%l:% %p on %A, %d %B %Y";
fmt[4] = 'M'; /* I *hate* SCCS... */
(void)time(&t);
OpenPOWER on IntegriCloud