diff --git a/libfakeroot.c b/libfakeroot.c index 169f4da..7593dd6 100644 --- a/libfakeroot.c +++ b/libfakeroot.c @@ -2586,19 +2570,3 @@ int sysinfo(int command, char *buf, long count) } } #endif - -#ifdef HAVE_OPENAT -int openat(int dir_fd, const char *pathname, int flags, ...) -{ - mode_t mode; - - if (flags & O_CREAT) { - va_list args; - va_start(args, flags); - mode = va_arg(args, int); - va_end(args); - } - - return next_openat(dir_fd, pathname, flags, mode); -} -#endif diff --git a/wrapfunc.inp b/wrapfunc.inp index f7ad186..556af34 100644 --- a/wrapfunc.inp +++ b/wrapfunc.inp @@ -198,7 +198,7 @@ fchownat;int;(int dir_fd, const char *path, uid_t owner, gid_t group, int flags) mkdirat;int;(int dir_fd, const char *pathname, mode_t mode);(dir_fd, pathname, mode) #endif /* HAVE_MKDIRAT */ #ifdef HAVE_OPENAT -openat;int;(int dir_fd, const char *pathname, int flags, mode_t mode);(dir_fd, pathname, flags, mode);;(int dir_fd, const char *pathname, int flags, ...) +openat;int;(int dir_fd, const char *pathname, int flags);(dir_fd, pathname, flags) #endif /* HAVE_OPENAT */ #ifdef HAVE_RENAMEAT renameat;int;(int olddir_fd, const char *oldpath, int newdir_fd, const char *newpath);(olddir_fd, oldpath, newdir_fd, newpath) -- GitLab