From 8c142592ef695153781ac69eaa36b89da336c797 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 8 Nov 2015 20:38:23 +0100 Subject: add support for euidaccess/eaccess legacy functions Implementation taken from musl libc project. Missing functions recognized by buildroot autobuilders with failing open-vm-tools. --- libc/sysdeps/linux/common/euidaccess.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libc/sysdeps/linux/common/euidaccess.c (limited to 'libc/sysdeps/linux/common/euidaccess.c') diff --git a/libc/sysdeps/linux/common/euidaccess.c b/libc/sysdeps/linux/common/euidaccess.c new file mode 100644 index 000000000..6e1f39855 --- /dev/null +++ b/libc/sysdeps/linux/common/euidaccess.c @@ -0,0 +1,10 @@ +#define _GNU_SOURCE +#include +#include + +int euidaccess(const char *filename, int amode) +{ + return faccessat(AT_FDCWD, filename, amode, AT_EACCESS); +} + +weak_alias(euidaccess, eaccess); -- cgit v1.2.3