access.c: make use of RVAL_DECODED
* access.c (decode_access, sys_faccessat): Update for RVAL_DECODED.
This commit is contained in:
parent
8aa2a81233
commit
0b2eabeed4
14
access.c
14
access.c
@ -7,12 +7,11 @@
|
|||||||
static int
|
static int
|
||||||
decode_access(struct tcb *tcp, int offset)
|
decode_access(struct tcb *tcp, int offset)
|
||||||
{
|
{
|
||||||
if (entering(tcp)) {
|
printpath(tcp, tcp->u_arg[offset]);
|
||||||
printpath(tcp, tcp->u_arg[offset]);
|
tprints(", ");
|
||||||
tprints(", ");
|
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
|
||||||
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
|
|
||||||
}
|
return RVAL_DECODED;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SYS_FUNC(access)
|
SYS_FUNC(access)
|
||||||
@ -22,7 +21,6 @@ SYS_FUNC(access)
|
|||||||
|
|
||||||
SYS_FUNC(faccessat)
|
SYS_FUNC(faccessat)
|
||||||
{
|
{
|
||||||
if (entering(tcp))
|
print_dirfd(tcp, tcp->u_arg[0]);
|
||||||
print_dirfd(tcp, tcp->u_arg[0]);
|
|
||||||
return decode_access(tcp, 1);
|
return decode_access(tcp, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user