vsftpd-2.0.7-uclibc.patch 596 B

123456789101112131415
  1. --- vsftpd-2.0.5/sysdeputil.c.orig 2008-10-06 15:24:42.000000000 -0600
  2. +++ vsftpd-2.0.5/sysdeputil.c 2008-10-06 15:35:35.000000000 -0600
  3. @@ -159,7 +159,12 @@
  4. #include <linux/capability.h>
  5. #include <errno.h>
  6. #include <syscall.h>
  7. +/* try to handle kernel header versions correctly (2.4 and >= 2.6.18) */
  8. +#ifndef capset
  9. +#define capset(head,data) syscall(__NR_capset,head,data)
  10. +#else
  11. _syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
  12. +#endif /* capset */
  13. /* Gross HACK to avoid warnings - linux headers overlap glibc headers */
  14. #undef __NFDBITS
  15. #undef __FDMASK