<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Dear strace developers,</p>
<p>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.</p>
<p>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.<br>
</p>
<p>See <a class="moz-txt-link-freetext" href="https://github.com/strace/strace/pull/194">https://github.com/strace/strace/pull/194</a> for details.</p>
<p>Note that 2 CI items are currently failing, they look like as
false-positive to me.</p>
<p>Thanks,</p>
<p>Renaud.<br>
</p>
<div class="moz-cite-prefix">On 9/18/21 19:24, Renaud Métrich wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFT-O4a=Z8zPO2FmQ9fuJOn5AWpZJBRshs--OJ0yXrWWJ8UJpQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
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>.<br>
I'll try working on this next week.<br>
<br>
On Thursday, September 9, 2021, Guy <<a
href="mailto:galfandary@gmail.com" moz-do-not-send="true"
class="moz-txt-link-freetext">galfandary@gmail.com</a>>
wrote:<br>
> Hi,<br>
><br>
> I'm using strace to find dependencies of complex system
processes.<br>
> A dependency for me is a file that is successfully accessed
and that<br>
> was not previously created by the process.<br>
> The main missing piece is the ability to get the full path of
the file<br>
> being accessed.<br>
> I added the equivalent of "pwdx pid" to the code.<br>
> The only problem is with those "at" calls which are relative
to dirfd.<br>
> Still working on that one.<br>
><br>
> I think it would be a nice enhancement to have an option to
get the full paths.<br>
><br>
> Thanks,<br>
> Guy<br>
> --<br>
> Strace-devel mailing list<br>
> <a href="mailto:Strace-devel@lists.strace.io"
moz-do-not-send="true" class="moz-txt-link-freetext">Strace-devel@lists.strace.io</a><br>
> <a
href="https://lists.strace.io/mailman/listinfo/strace-devel"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.strace.io/mailman/listinfo/strace-devel</a><br>
><br>
><br>
<br>
-- <br>
-- <br>
Renaud<br>
Sent from my phone, sorry for the typos...<br>
</blockquote>
</body>
</html>