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
|
||||
decode_access(struct tcb *tcp, int offset)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
printpath(tcp, tcp->u_arg[offset]);
|
||||
tprints(", ");
|
||||
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
|
||||
}
|
||||
return 0;
|
||||
printpath(tcp, tcp->u_arg[offset]);
|
||||
tprints(", ");
|
||||
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
|
||||
|
||||
return RVAL_DECODED;
|
||||
}
|
||||
|
||||
SYS_FUNC(access)
|
||||
@ -22,7 +21,6 @@ SYS_FUNC(access)
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user