summaryrefslogtreecommitdiff
path: root/vsftpd/vsftpd-2.0.5-syscall.patch
blob: 4944990598e65b2cddd43b7ba971b3b6523d8b72 (plain)
    1 # See http://www.mail-archive.com/lfs-dev@linuxfromscratch.org/msg08600.html
    2 
    3 diff -pNur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c
    4 --- vsftpd-2.0.5.orig/sysdeputil.c	2006-07-02 15:14:10.000000000 -0700
    5 +++ vsftpd-2.0.5/sysdeputil.c	2006-10-19 23:41:58.000000000 -0700
    6 @@ -155,14 +155,15 @@
    7  #include <sys/capability.h>
    8  
    9  #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
   10 -#include <linux/unistd.h>
   11  #include <linux/capability.h>
   12  #include <errno.h>
   13 -#include <syscall.h>
   14 -_syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
   15 -/* Gross HACK to avoid warnings - linux headers overlap glibc headers */
   16 -#undef __NFDBITS
   17 -#undef __FDMASK
   18 +#include <sys/syscall.h>
   19 +#include <unistd.h>
   20 +int capset(cap_user_header_t header,
   21 +           cap_user_data_t data)
   22 +{
   23 +  return syscall(SYS_capset, header, data);
   24 +}
   25  #endif /* VSF_SYSDEP_HAVE_CAPABILITIES */
   26  
   27  #if defined(VSF_SYSDEP_HAVE_LINUX_SENDFILE) || \

Generated by cgit