PR 194 - Print path for AT_FDCWD

Renaud Métrich rmetrich at redhat.com
Tue Sep 21 18:59:01 UTC 2021


Dear strace developers,

I would like to propose an enhancement consisting in printing the 
current working directory when having syscalls with AT_FDCWD parameter, 
this would be enabled when -y is used.

This feature would be very appreciated when digging into an strace where 
the program makes heavy use of relative paths, which makes it a big pain 
to get the path names.

See https://github.com/strace/strace/pull/194 for details.

Note that 2 CI items are currently failing, they look like as 
false-positive to me.

Thanks,

Renaud.

On 9/18/21 19:24, Renaud Métrich wrote:
> That's indeed interesting feature, it's not rare that I need to know 
> which dir curdir is as well. I think this could be implemented as a 
> decoder to AT_CWD, e.g. AT_CWD</some/path>.
> I'll try working on this next week.
>
> On Thursday, September 9, 2021, Guy <galfandary at gmail.com> wrote:
> > Hi,
> >
> > I'm using strace to find dependencies of complex system processes.
> > A dependency for me is a file that is successfully accessed and that
> > was not previously created by the process.
> > The main missing piece is the ability to get the full path of the file
> > being accessed.
> > I added the equivalent of "pwdx pid" to the code.
> > The only problem is with those "at" calls which are relative to dirfd.
> > Still working on that one.
> >
> > I think it would be a nice enhancement to have an option to get the 
> full paths.
> >
> > Thanks,
> > Guy
> > --
> > Strace-devel mailing list
> > Strace-devel at lists.strace.io
> > https://lists.strace.io/mailman/listinfo/strace-devel
> >
> >
>
> -- 
> -- 
> Renaud
> Sent from my phone, sorry for the typos...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210921/f33f4241/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210921/f33f4241/attachment.bin>


More information about the Strace-devel mailing list