Ticket #49858: patch-libfakeroot.c.diff
File patch-libfakeroot.c.diff, 1.5 KB (added by florian@…, 9 years ago) |
---|
-
libfakeroot.c
old new 110 110 #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT(_STAT_VER,a,b,c,d) 111 111 #define INT_SEND_STAT(a,b) SEND_STAT(a,b,_STAT_VER) 112 112 #define INT_SEND_GET_XATTR(a,b) SEND_GET_XATTR(a,b,_STAT_VER) 113 114 /* 10.10 uses id_t in getpriority/setpriority calls, so pretend 115 id_t is used everywhere, just happens to be int on some OSes */ 116 #ifndef _ID_T 117 #define _ID_T 118 typedef int id_t; 119 #endif 113 120 #endif 114 121 122 #include <sys/types.h> 115 123 #include <stdlib.h> 116 124 #include <sys/ipc.h> 117 125 #include <sys/msg.h> … … 123 131 #include <unistd.h> 124 132 #include <dirent.h> 125 133 #include <errno.h> 126 #include <sys/types.h>127 134 #ifdef HAVE_SYS_ACL_H 128 135 #include <sys/acl.h> 129 136 #endif /* HAVE_SYS_ACL_H */ … … 1894 1901 } 1895 1902 #endif /* HAVE_FREMOVEXATTR */ 1896 1903 1897 int setpriority(int which, i nt who, int prio){1904 int setpriority(int which, id_t who, int prio){ 1898 1905 if (fakeroot_disabled) 1899 1906 return next_setpriority(which, who, prio); 1900 1907 next_setpriority(which, who, prio); … … 2426 2433 } 2427 2434 } 2428 2435 #endif 2436 2437 #ifdef HAVE_OPENAT 2438 int openat(int dir_fd, const char *pathname, int flags, ...) 2439 { 2440 if (flags & O_CREAT) 2441 { 2442 va_list args; 2443 mode_t mode; 2444 va_start(args, flags); 2445 mode = va_arg(args, int); 2446 va_end(args); 2447 return next_openat(dir_fd, pathname, flags, mode); 2448 } 2449 return next_openat(dir_fd, pathname, flags, NULL); 2450 } 2451 #endif