Date:Sun, 6 Nov 2022 17:31:59 +
From:David Holland
Message-ID:
| It seems to orphan this text in POSIX:
|
| : If a struct tm broken-down time structure is created or modified by
| : gmtime() or gmtime_r(), it is unspecified whether the result of the %
>> There is nothing in the C99 description of mktime (or POSIX either)
>> that specifies which fields [strftime] uses,
Unless it was removed after the very-late-draft I have, there is. See
my earlier mail in this thread which quoted 7.23.3.5. This says,
among other things,
I have no problem with the proposed patch to strftime.3
though I'd word the change for %s more like it is in the
GNU and POSIX specifications, to make it clear that the
value that %s represents as a string is the identical
value that mktime() would return if given the same struct tm.
It would also
Date:Mon, 07 Nov 2022 21:04:49 +0700
From:Robert Elz
Message-ID: <12822.1667829...@jacaranda.noi.kre.to>
Replying to my own message
| Date:Sun, 6 Nov 2022 17:31:59 +
| From:David Holland
| Message-ID:
| | There is not
I have a program, running with ruid=euid=0, that wants to set its real
and effective IDs to two other, different, IDs, neither one privileged.
What is the proper way to do this? I first reached for setreuid(2),
but its manpage says that it is "made obsolete" by the saved-ID
functionality of setui