Fix: run_as_mkdirat returns value of errno
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 May 2019 17:34:37 +0000 (13:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:13 +0000 (16:39 -0400)
commitaa7ad01746bce973e4855951ab472ac010f19ccc
tree9b6c2aa814ddfe2479305087ccf85506af350bf0
parente1ddb036519b78242b349981054a41e765260e90
Fix: run_as_mkdirat returns value of errno

The run_as_mkdirat() function returns the _errno value returned
by the run-as worker instead of returning `ret`. This causes
run_as_mkdirat() to return an error when errno was already set
to a non-zero value by a previous libc/system call.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/runas.c
This page took 0.027988 seconds and 4 git commands to generate.