rpms/vsftpd/F-13 vsftpd-2.2.2-clone.patch,NONE,1.1

Jiri Skala jskala at fedoraproject.org
Fri May 14 12:31:32 UTC 2010


Author: jskala

Update of /cvs/extras/rpms/vsftpd/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv26944

Added Files:
	vsftpd-2.2.2-clone.patch 
Log Message:
* Fri May 14 2010 Jiri Skala <jskala at redhat.com> - 2.2.2-6
- syscall(__NR_clone) replaced by clone() to fix incorrect order of params on s390 arch


vsftpd-2.2.2-clone.patch:
 sysdeputil.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE vsftpd-2.2.2-clone.patch ---
diff -up vsftpd-2.2.2/sysdeputil.c.clone vsftpd-2.2.2/sysdeputil.c
--- vsftpd-2.2.2/sysdeputil.c.clone	2010-05-13 13:26:32.099358732 +0200
+++ vsftpd-2.2.2/sysdeputil.c	2010-05-13 13:26:43.894359985 +0200
@@ -1279,7 +1279,7 @@ vsf_sysutil_fork_isolate_failok()
   static int cloneflags_work = 1;
   if (cloneflags_work)
   {
-    int ret = syscall(__NR_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
+    int ret = clone(NULL, NULL, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
     if (ret != -1 || (errno != EINVAL && errno != EPERM))
     {
       if (ret == 0)
@@ -1301,7 +1301,7 @@ vsf_sysutil_fork_newnet()
   static int cloneflags_work = 1;
   if (cloneflags_work)
   {
-    int ret = syscall(__NR_clone, CLONE_NEWNET | SIGCHLD, NULL);
+    int ret = clone(NULL, NULL, CLONE_NEWNET | SIGCHLD, NULL);
     if (ret != -1 || (errno != EINVAL && errno != EPERM))
     {
       if (ret == 0)



More information about the scm-commits mailing list