gcc484ntopperl-5.22
Last change
on this file since c5c522c 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
|
Rev | Line | |
---|
[c5c522c] | 1 | diff -ur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c |
---|
| 2 | --- vsftpd-2.0.5.orig/sysdeputil.c 2007-01-05 17:58:28.000000000 +0000 |
---|
| 3 | +++ vsftpd-2.0.5/sysdeputil.c 2007-01-05 17:55:30.000000000 +0000 |
---|
| 4 | @@ -154,11 +154,8 @@ |
---|
| 5 | #include <sys/capability.h> |
---|
| 6 | |
---|
| 7 | #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP) |
---|
| 8 | -#include <linux/unistd.h> |
---|
| 9 | #include <linux/capability.h> |
---|
| 10 | -#include <errno.h> |
---|
| 11 | -#include <syscall.h> |
---|
| 12 | -_syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data) |
---|
| 13 | +#include <sys/syscall.h> |
---|
| 14 | /* Gross HACK to avoid warnings - linux headers overlap glibc headers */ |
---|
| 15 | #undef __NFDBITS |
---|
| 16 | #undef __FDMASK |
---|
| 17 | @@ -508,6 +505,18 @@ |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | #ifndef VSF_SYSDEP_HAVE_LIBCAP |
---|
| 21 | + |
---|
| 22 | +static int |
---|
| 23 | +capset(struct __user_cap_header_struct *header, |
---|
| 24 | + const struct __user_cap_data_struct *data); |
---|
| 25 | + |
---|
| 26 | +static int |
---|
| 27 | +capset(struct __user_cap_header_struct *header, |
---|
| 28 | + const struct __user_cap_data_struct *data) |
---|
| 29 | +{ |
---|
| 30 | + return syscall(__NR_capset, header, data); |
---|
| 31 | +} |
---|
| 32 | + |
---|
| 33 | static int |
---|
| 34 | do_checkcap(void) |
---|
| 35 | { |
---|
Note: See
TracBrowser
for help on using the repository browser.