martinpitt/umockdev — pull request #42 by camako (2014-09-06 21:04:47+00:00)
Title: Call open(.., .., mode) when O_TMPFILE is specified.

When creating a temporary file with 'open' (using the 'O_TMPFILE' flag), 'mode' argument must be specified (see explanation for 'O_CREAT' at http://man7.org/linux/man-pages/man2/open.2.html). The path in 'open' could be one that is trapped by umockdev, e.g. "/dev/shm". In this case, 'umockdev' fails to call the version of 'open' with 'mode' since it expects the 'O_CREAT' flag, which, in this case, doesn't exist. This commit allows correct pass-through of 'open' by 'umockdev'.