source: npl/fileserver/vsftpd/vsftpd-2.0.5-caps.patch @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.0 KB
  • sysdeputil.c

    diff -ur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c
    old new  
    154154#include <sys/capability.h>
    155155
    156156#if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
    157 #include <linux/unistd.h>
    158157#include <linux/capability.h>
    159 #include <errno.h>
    160 #include <syscall.h>
    161 _syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
     158#include <sys/syscall.h>
    162159/* Gross HACK to avoid warnings - linux headers overlap glibc headers */
    163160#undef __NFDBITS
    164161#undef __FDMASK
     
    508505}
    509506 
    510507  #ifndef VSF_SYSDEP_HAVE_LIBCAP
     508
     509static int
     510capset(struct __user_cap_header_struct *header,
     511       const struct __user_cap_data_struct *data);
     512
     513static int
     514capset(struct __user_cap_header_struct *header,
     515       const struct __user_cap_data_struct *data)
     516{
     517  return syscall(__NR_capset, header, data);
     518}
     519
    511520static int
    512521do_checkcap(void)
    513522{
Note: See TracBrowser for help on using the repository browser.