diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-02-26 17:39:47 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-02-26 17:39:47 +0000 |
commit | 556ee11db407eee500c311c56203c2a3923bef56 (patch) | |
tree | fe2ecf68bd11a6086794a694df30a4ff0334bd1f /net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch | |
parent | Duplicate license file (see bug #211534) (diff) | |
download | gentoo-2-556ee11db407eee500c311c56203c2a3923bef56.tar.gz gentoo-2-556ee11db407eee500c311c56203c2a3923bef56.tar.bz2 gentoo-2-556ee11db407eee500c311c56203c2a3923bef56.zip |
Finally fix the libcap mess, bug #210478
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch')
-rw-r--r-- | net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch b/net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch new file mode 100644 index 000000000000..467a7fb01220 --- /dev/null +++ b/net-ftp/vsftpd/files/vsftpd-2.0.6-libcap1.patch @@ -0,0 +1,22 @@ +diff -ur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c +--- vsftpd-2.0.5.orig/sysdeputil.c 2007-01-05 17:58:28.000000000 +0000 ++++ vsftpd-2.0.5/sysdeputil.c 2007-01-05 17:55:30.000000000 +0000 +@@ -508,6 +505,18 @@ + } + + #ifndef VSF_SYSDEP_HAVE_LIBCAP ++ ++static int ++capset(struct __user_cap_header_struct *header, ++ const struct __user_cap_data_struct *data); ++ ++static int ++capset(struct __user_cap_header_struct *header, ++ const struct __user_cap_data_struct *data) ++{ ++ return syscall(__NR_capset, header, data); ++} ++ + static int + do_checkcap(void) + { |