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, 25 Jul 2019 19:45:26 +0000 (15:45 -0400)
commitf3bc9b69786b16160da9c7f2650e1199e55529b6
tree77342c5d605045ce8d10d7737086b1f48730fe13
parent87bbb85674277f43cb219223303c2e76f92c48dd
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.024475 seconds and 4 git commands to generate.