Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105547 Details for
Bug 159488
net-ftp/vsftpd-2.0.5 doesn't compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix compile with -caps
vsftpd-caps.patch (text/plain), 1.00 KB, created by
Roy Marples (RETIRED)
on 2007-01-05 10:02:47 UTC
(
hide
)
Description:
Fix compile with -caps
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-01-05 10:02:47 UTC
Size:
1.00 KB
patch
obsolete
>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 >@@ -154,11 +154,8 @@ > #include <sys/capability.h> > > #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP) >-#include <linux/unistd.h> > #include <linux/capability.h> >-#include <errno.h> >-#include <syscall.h> >-_syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data) >+#include <sys/syscall.h> > /* Gross HACK to avoid warnings - linux headers overlap glibc headers */ > #undef __NFDBITS > #undef __FDMASK >@@ -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) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 159488
: 105547