mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-03 10:20:49 +02:00
fixes for glibc time/gettimeofday issue; fix issue with history file containing one line too few if saving timestamps; fix for signal arriving while displaying readline completions
This commit is contained in:
@@ -80,6 +80,12 @@ strftime_builtin (WORD_LIST *list)
|
||||
secs = NOW;
|
||||
|
||||
t = localtime (&secs);
|
||||
if (t == 0)
|
||||
{
|
||||
builtin_error ("%s: timestamp out of range", list && list->word->word ? list->word->word : "now");
|
||||
return (EXECUTION_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
tbsize = strlen (format) * 4;
|
||||
tbuf = 0;
|
||||
|
||||
Reference in New Issue
Block a user