source:
npl/fileserver/vsftpd/vsftpd-2.0.5-caps.patch
@
0105685
Last change on this file since 0105685 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.0 KB |
-
sysdeputil.c
diff -ur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c
old new 154 154 #include <sys/capability.h> 155 155 156 156 #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP) 157 #include <linux/unistd.h>158 157 #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> 162 159 /* Gross HACK to avoid warnings - linux headers overlap glibc headers */ 163 160 #undef __NFDBITS 164 161 #undef __FDMASK … … 508 505 } 509 506 510 507 #ifndef VSF_SYSDEP_HAVE_LIBCAP 508 509 static int 510 capset(struct __user_cap_header_struct *header, 511 const struct __user_cap_data_struct *data); 512 513 static int 514 capset(struct __user_cap_header_struct *header, 515 const struct __user_cap_data_struct *data) 516 { 517 return syscall(__NR_capset, header, data); 518 } 519 511 520 static int 512 521 do_checkcap(void) 513 522 {
Note: See TracBrowser
for help on using the repository browser.