Line 0
Link Here
|
0 |
-- |
1 |
/* |
|
|
2 |
libfakechroot -- fake chroot environment |
3 |
Copyright (c) 2010-2020 Piotr Roszatycki <dexter@debian.org> |
4 |
|
5 |
This library is free software; you can redistribute it and/or |
6 |
modify it under the terms of the GNU Lesser General Public |
7 |
License as published by the Free Software Foundation; either |
8 |
version 2.1 of the License, or (at your option) any later version. |
9 |
|
10 |
This library is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 |
Lesser General Public License for more details. |
14 |
|
15 |
You should have received a copy of the GNU Lesser General Public |
16 |
License along with this library; if not, write to the Free Software |
17 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 |
*/ |
19 |
|
20 |
|
21 |
#include <config.h> |
22 |
|
23 |
#ifdef HAVE_STATX |
24 |
|
25 |
#define _GNU_SOURCE |
26 |
#include <sys/types.h> |
27 |
#include <sys/stat.h> |
28 |
#include <unistd.h> |
29 |
|
30 |
#include "libfakechroot.h" |
31 |
|
32 |
|
33 |
wrapper(statx, int, (int dirfd, const char * pathname, int flags, unsigned int mask, struct statx * statxbuf)) |
34 |
{ |
35 |
char fakechroot_abspath[FAKECHROOT_PATH_MAX]; |
36 |
char fakechroot_buf[FAKECHROOT_PATH_MAX]; |
37 |
debug("statx(%d, \"%s\", %d, %u, &statxbuf)", dirfd, pathname, flags, mask); |
38 |
expand_chroot_path_at(dirfd, pathname); |
39 |
return nextcall(statx)(dirfd, pathname, flags, mask, statxbuf); |
40 |
} |
41 |
|
42 |
#else |
43 |
typedef int empty_translation_unit; |
44 |
#endif |
1 |
src/tmpnam.c | 2 +- |
45 |
src/tmpnam.c | 2 +- |
2 |
1 file changed, 1 insertion(+), 1 deletion(-) |
46 |
1 file changed, 1 insertion(+), 1 deletion(-) |