1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:lib: Consistently return a string with a trailing newline

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-08 15:38:26 +12:00 committed by Andrew Bartlett
parent 8505094b3b
commit 34545cdf3d

View File

@ -406,12 +406,12 @@ const char *time_to_asc(const time_t t)
struct tm *lt = localtime(&t);
if (!lt) {
return "unknown time";
return "unknown time\n";
}
asct = asctime(lt);
if (!asct) {
return "unknown time";
return "unknown time\n";
}
return asct;
}