ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

musl-fixes.patch (2893B)


      1 diff -aur fakeroot-ng-0.17/arch/linux/os.c fakeroot-ng-0.17-dirty/arch/linux/os.c
      2 --- fakeroot-ng-0.17/arch/linux/os.c	2009-06-23 17:25:42.000000000 +0000
      3 +++ fakeroot-ng-0.17-dirty/arch/linux/os.c	2017-03-15 08:23:51.089736930 +0000
      4 @@ -22,7 +22,6 @@
      5  #include <sys/types.h>
      6  #include <sys/ptrace.h>
      7  #include <sys/wait.h>
      8 -#include <linux/ptrace.h>
      9  #include <signal.h>
     10  #include <sched.h>
     11  
     12 diff -aur fakeroot-ng-0.17/file.cpp fakeroot-ng-0.17-dirty/file.cpp
     13 --- fakeroot-ng-0.17/file.cpp	2009-06-29 12:31:31.000000000 +0000
     14 +++ fakeroot-ng-0.17-dirty/file.cpp	2017-03-15 08:24:00.662975748 +0000
     15 @@ -29,6 +29,7 @@
     16  #include <limits.h>
     17  
     18  #include <string.h>
     19 +#include <unistd.h>
     20  
     21  #include <sys/types.h>
     22  #include <sys/ptrace.h>
     23  #include <signal.h>
     24 diff -aur fakeroot-ng-0.17/parent.cpp fakeroot-ng-0.17-dirty/parent.cpp
     25 --- fakeroot-ng-0.17/parent.cpp	2009-06-29 12:23:03.000000000 +0000
     26 +++ fakeroot-ng-0.17-dirty/parent.cpp	2017-03-15 08:24:08.772895627 +0000
     27 @@ -40,6 +40,7 @@
     28  #include <string.h>
     29  #include <limits.h>
     30 +#include <unistd.h>
     31  
     32  #include <sys/types.h>
     33  #include <sys/ptrace.h>
     34  #include <signal.h>
     35 @@ -201,9 +202,6 @@
     36  #ifdef SYS_lstat64
     37      DEF_SYS2(lstat64, stat);
     38  #endif
     39 -#if defined(SYS_fstatat64) && HAVE_OPENAT
     40 -    DEF_SYS1(fstatat64);
     41 -#endif
     42  
     43      DEF_SYS1(chown);
     44  #if defined(SYS_chown32)
     45 diff -aur fakeroot-ng-0.17/ptrace.cpp fakeroot-ng-0.17-dirty/ptrace.cpp
     46 --- fakeroot-ng-0.17/ptrace.cpp	2009-05-30 14:29:22.000000000 +0000
     47 +++ fakeroot-ng-0.17-dirty/ptrace.cpp	2017-03-15 08:24:16.379487106 +0000
     48 @@ -79,7 +79,7 @@
     49  {
     50      pid_t child=(pid_t)state->context_state[1];
     51      pid_state *child_state=lookup_state( child );
     52 -    __ptrace_request req=(__ptrace_request)state->context_state[0];
     53 +    int req=(int)state->context_state[0];
     54      if( req==PTRACE_CONT ) {
     55          child_state->trace_mode|=TRACE_CONT;
     56          dlog("ptrace: %d PTRACE_CONT("PID_F")\n", pid, child );
     57 @@ -183,7 +183,7 @@
     58  
     59      if( verify_permission( pid, state ) ) {
     60          errno=0;
     61 -        long data=ptrace( (__ptrace_request)state->context_state[0], child, state->context_state[2], 0 );
     62 +        long data=ptrace( (int)state->context_state[0], child, state->context_state[2], 0 );
     63          if( data!=-1 || errno==0 ) {
     64              dlog("handle_peek_data: %d is peeking data from "PID_F" at address %p\n", pid, child, (void*)state->context_state[2] );
     65  
     66 @@ -208,7 +208,7 @@
     67      pid_t child=(pid_t)state->context_state[1];
     68  
     69      if( verify_permission( pid, state ) &&
     70 -        ptrace( (__ptrace_request)state->context_state[0], child, state->context_state[2], state->context_state[3] )==0 )
     71 +        ptrace( (int)state->context_state[0], child, state->context_state[2], state->context_state[3] )==0 )
     72      {
     73          dlog("handle_poke_data: %d is pokeing data in "PID_F" at address %p\n", pid, child, (void*)state->context_state[2] );
     74          ptlib_set_retval( pid, 0 );