Skip to content

Commit 0b2eabe

Browse files
committed
access.c: make use of RVAL_DECODED
* access.c (decode_access, sys_faccessat): Update for RVAL_DECODED.
1 parent 8aa2a81 commit 0b2eabe

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

access.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
static int
88
decode_access(struct tcb *tcp, int offset)
99
{
10-
if (entering(tcp)) {
11-
printpath(tcp, tcp->u_arg[offset]);
12-
tprints(", ");
13-
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
14-
}
15-
return 0;
10+
printpath(tcp, tcp->u_arg[offset]);
11+
tprints(", ");
12+
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK");
13+
14+
return RVAL_DECODED;
1615
}
1716

1817
SYS_FUNC(access)
@@ -22,7 +21,6 @@ SYS_FUNC(access)
2221

2322
SYS_FUNC(faccessat)
2423
{
25-
if (entering(tcp))
26-
print_dirfd(tcp, tcp->u_arg[0]);
24+
print_dirfd(tcp, tcp->u_arg[0]);
2725
return decode_access(tcp, 1);
2826
}

0 commit comments

Comments
 (0)