Re: [PATCH v4] Print absolute paths in printpathn when -yy is used

2014-06-26 Thread Dmitry V. Levin
Hi Zubin, On Fri, Jun 20, 2014 at 11:04:15AM +0530, zubin.mit...@gmail.com wrote: > --- a/util.c > +++ b/util.c > @@ -563,6 +563,42 @@ string_quote(const char *instr, char *outstr, long len, > int size) > return 0; > } > > + > +/* > + * Print the current working directory of the tracee p

[PATCH v4] Print absolute paths in printpathn when -yy is used

2014-06-19 Thread zubin . mithra
From: Zubin Mithra * defs.h (show_fd_path): Change type to unsigned int. * strace.c (show_fd_path): Update usage to count y flag. (usage): Update to add -yy option. * util.c (print_tracee_cwd): New function. (printpathn): Update to use print_tracee_cwd and print absolute path. * strace.1: Add de