[systemd-devel] [RFC PATCH 1/2] Replace mkostemp+unlink with open(O_TMPFILE)

Uoti Urpala uoti.urpala at pp1.inet.fi
Mon Jan 27 11:05:32 PST 2014


On Mon, 2014-01-27 at 19:53 +0100, Kay Sievers wrote:
> >> >> Can we expect open(O_TMPFILE) to fail on kernels which do not support it?

> Yeah, but what happens for a "/tmp/does-not-exist" request? :)

#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)

the O_DIRECTORY part should make it fail.




More information about the systemd-devel mailing list