Skip to content

Commit fe62e33

Browse files
committed
renameat.c: make use of RVAL_DECODED
* renameat.c (sys_renameat, sys_renameat2): Update for RVAL_DECODED.
1 parent 2b15a58 commit fe62e33

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

renameat.c

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,19 @@ decode_renameat(struct tcb *tcp)
1212

1313
SYS_FUNC(renameat)
1414
{
15-
if (entering(tcp)) {
16-
decode_renameat(tcp);
17-
}
18-
return 0;
15+
decode_renameat(tcp);
16+
17+
return RVAL_DECODED;
1918
}
2019

2120
#include <linux/fs.h>
2221
#include "xlat/rename_flags.h"
2322

2423
SYS_FUNC(renameat2)
2524
{
26-
if (entering(tcp)) {
27-
decode_renameat(tcp);
28-
tprints(", ");
29-
printflags(rename_flags, tcp->u_arg[4], "RENAME_??");
30-
}
31-
return 0;
25+
decode_renameat(tcp);
26+
tprints(", ");
27+
printflags(rename_flags, tcp->u_arg[4], "RENAME_??");
28+
29+
return RVAL_DECODED;
3230
}

0 commit comments

Comments
 (0)