File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
#include "defs.h"
2
2
3
- static int
4
- decode_chmod (struct tcb * tcp , int offset )
3
+ static void
4
+ decode_chmod (struct tcb * tcp , const int offset )
5
5
{
6
- if (entering (tcp )) {
7
- printpath (tcp , tcp -> u_arg [offset ]);
8
- tprintf (", %#lo" , tcp -> u_arg [offset + 1 ]);
9
- }
10
- return 0 ;
6
+ printpath (tcp , tcp -> u_arg [offset ]);
7
+ tprintf (", %#lo" , tcp -> u_arg [offset + 1 ]);
11
8
}
12
9
13
10
SYS_FUNC (chmod )
14
11
{
15
- return decode_chmod (tcp , 0 );
12
+ decode_chmod (tcp , 0 );
13
+
14
+ return RVAL_DECODED ;
16
15
}
17
16
18
17
SYS_FUNC (fchmodat )
19
18
{
20
- if (entering (tcp ))
21
- print_dirfd (tcp , tcp -> u_arg [0 ]);
22
- return decode_chmod (tcp , 1 );
19
+ print_dirfd (tcp , tcp -> u_arg [0 ]);
20
+ decode_chmod (tcp , 1 );
21
+
22
+ return RVAL_DECODED ;
23
23
}
24
24
25
25
SYS_FUNC (fchmod )
26
26
{
27
- if (entering (tcp )) {
28
- printfd (tcp , tcp -> u_arg [0 ]);
29
- tprintf (", %#lo" , tcp -> u_arg [1 ]);
30
- }
31
- return 0 ;
27
+ printfd (tcp , tcp -> u_arg [0 ]);
28
+ tprintf (", %#lo" , tcp -> u_arg [1 ]);
29
+
30
+ return RVAL_DECODED ;
32
31
}
You can’t perform that action at this time.
0 commit comments