[pseudo] [PATCH 2/2] makewrappers: Avoid efault workaround if using AT_EMPTY_PATH
Richard Purdie <[email protected]> Wed, 29 Jul 2026 15:42:26 +0100
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
The efault workaround shouldn't apply if AT_EMPTY_PATH is specified as in that case, an empty path is allowed. Signed-off-by: Richard Purdie <[email protected]> --- makewrappers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makewrappers b/makewrappers index 83f5ca6..19508fa 100755 --- a/makewrappers +++ b/makewrappers @@ -415,7 +415,7 @@ class Function: if self.efault and path in self.efault.split('|'): fix_paths.append( # Emulate EFAULT when path is null - "if (%s == NULL) {\n" + "if ((%s == NULL) && !(flags & AT_EMPTY_PATH)) {\n" "\t\t\terrno = EFAULT;\n" "\t\t\t%s -1;\n" "\t\t\tgoto quick_exit;\n"