Dmitry V. Levin
2f7d020e22
This will make further uid/gid fixes simpler. * fchownat.c: New file. * chown.c (sys_fchownat: Move to fchownat.c. (sys_chown, sys_fchown): Move to uid.c. * Makefile.am (strace_SOURCES): Remove chown.c, add fchownat.c.
16 lines
293 B
C
16 lines
293 B
C
#include "defs.h"
|
|
|
|
int
|
|
sys_fchownat(struct tcb *tcp)
|
|
{
|
|
if (entering(tcp)) {
|
|
print_dirfd(tcp, tcp->u_arg[0]);
|
|
printpath(tcp, tcp->u_arg[1]);
|
|
printuid(", ", tcp->u_arg[2]);
|
|
printuid(", ", tcp->u_arg[3]);
|
|
tprints(", ");
|
|
printflags(at_flags, tcp->u_arg[4], "AT_???");
|
|
}
|
|
return 0;
|
|
}
|