file.c: move chdir parser to a separate file
* chdir.c: New file. * Makefile.am (strace_SOURCES): Add it. * file.c (sys_chdir): Move to chdir.c.
This commit is contained in:
parent
231b19fca0
commit
9b2f674adb
@ -22,6 +22,7 @@ strace_SOURCES = \
|
||||
block.c \
|
||||
cacheflush.c \
|
||||
capability.c \
|
||||
chdir.c \
|
||||
chmod.c \
|
||||
chown.c \
|
||||
count.c \
|
||||
|
10
chdir.c
Normal file
10
chdir.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include "defs.h"
|
||||
|
||||
int
|
||||
sys_chdir(struct tcb *tcp)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
printpath(tcp, tcp->u_arg[0]);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user