Re: [Rpm-maint] [rpm-software-management/rpm] Eliminate uses of non-threadsafe locatime() and ctime() functions (#921)

2019-10-31 Thread Florian Festi
Merged #921 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/921#event-2759320229___ Rpm-maint mailing list Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Eliminate uses of non-threadsafe locatime() and ctime() functions (#921)

2019-10-31 Thread lgtm-com[bot]
This pull request **fixes 4 alerts** when merging 72b177252886e91618114f065cb8ecfc63ceb95e into 63930cd5244bd646d226b73dd43a2a3e681c58ad - [view on LGTM.com](https://lgtm.com/projects/g/rpm-software-management/rpm/rev/pr-520f1f065aa9e20bc4d7ca9972df6a8584e1143b) **fixed alerts:** * 4 for Use o

[Rpm-maint] [rpm-software-management/rpm] Eliminate uses of non-threadsafe locatime() and ctime() functions (#921)

2019-10-31 Thread Panu Matilainen
LGTM pointed out localtime() and ctime() are not thread-safe, and additionally ctime() is considered obsolete since POSIX.1-2008. Replace with localtime_r() and strftime() instead. Long broken --prtpkts debug switch is fixed in a separate commit to have means of testing the strftime() change.