search for: have_linux_caps

Displaying 1 result from an estimated 1 matches for "have_linux_caps".

2004 Jan 26
1
patch for linux capabilities
...> -------------- next part -------------- diff -urN rsync-2.6.0.orig/clientserver.c rsync-2.6.0/clientserver.c --- rsync-2.6.0.orig/clientserver.c 2003-09-10 23:00:19.000000000 -0500 +++ rsync-2.6.0/clientserver.c 2004-01-26 11:27:53.000000000 -0600 @@ -25,6 +25,18 @@ * rsyncd. **/ +#ifdef HAVE_LINUX_CAPS +#ifdef _POSIX_SOURCE +#undef _POSIX_SOURCE +#include <sys/prctl.h> +#include <sys/capability.h> +#define _POSIX_SOURCE +#else +#include <sys/prctl.h> +#include <sys/capability.h> +#endif +#endif + #include "rsync.h" extern int module_id; @@ -217,6 +229,10...