search for: at_eaccess

Displaying 4 results from an estimated 4 matches for "at_eaccess".

Did you mean: al_access
2010 Apr 16
0
[PATCH] add minimal faccessat()
Implement as wrapper around sys_faccessat(). Latest dash started using it, also define AT_EACCESS: usr/dash/bltin/test.c: In function ?test_file_access?: usr/dash/bltin/test.c:490: error: too many arguments to function ?faccessat? Signed-off-by: maximilian attems <max at stro.at> --- usr/include/fcntl.h | 5 +++++ usr/include/unistd.h | 2 +- usr/klibc/Kbuild | 2 +-...
2012 Jul 02
0
[klibc:master] dash: sync with latest git
...tro.at> AuthorDate: Mon, 2 Jul 2012 10:51:46 +0200 Committer: maximilian attems <max at stro.at> CommitDate: Mon, 2 Jul 2012 11:03:33 +0200 [klibc] dash: sync with latest git Gains us compile and runtime fixes including newer dash >= 0.5.7. For now disable faccessat() as we yet miss AT_EACCESS definition. Signed-off-by: maximilian attems <max at stro.at> --- usr/dash/README.dash | 3 ++- usr/dash/config.h | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/usr/dash/README.dash b/usr/dash/README.dash index dcce478..6536327 100644 --- a/usr/da...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Fix "test -x" as root on FreeBSD 8
...st_mode & (S_IXUSR | S_IXGRP | S_IXOTH); +} + static int test_file_access(const char *path, int mode) { + if (faccessat_confused_about_superuser() && + mode == X_OK && geteuid() == 0 && !has_exec_bit_set(path)) + return 0; return !faccessat(AT_FDCWD, path, mode, AT_EACCESS); } #else /* HAVE_FACCESSAT */
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Fix "test -x" as root on FreeBSD 8
...st_mode & (S_IXUSR | S_IXGRP | S_IXOTH); +} + static int test_file_access(const char *path, int mode) { + if (faccessat_confused_about_superuser() && + mode == X_OK && geteuid() == 0 && !has_exec_bit_set(path)) + return 0; return !faccessat(AT_FDCWD, path, mode, AT_EACCESS); } #else /* HAVE_FACCESSAT */