[PATCH] Print cwd path to AT_FDCWD when -y (--decode-fd=path) flag is used

Renaud Métrich rmetrich at redhat.com
Tue Nov 16 08:48:27 UTC 2021


the proposal is 1 month old now.

Shall I rebase against https://github.com/strace/strace/commits/ldv/next 
or is that ok to keep it like this for now until it gets reviewed?


On 10/6/21 20:36, Renaud Métrich wrote:
> Hi,
> This set of patches enables to resolve the AT_FDCWD dirfd, which is 
> very useful when syscalls perform an operation on the cwd and relative 
> pathname, avoiding the need to search for the pwd, which is sometimes 
> just not available.
> Also available as a PR: https://github.com/strace/strace/pull/194
> The patch is split into 4 pieces for now because I found out that the 
> filter on --decode-fds=path isn't used at all in current strace code: 
> paths get decoded as soon as --decode-fds=<something> is used.
> Since I don't know if this is really the expected behaviour, I kept 
> the commits separated in case we just want decoding when 
> --decode-fd=path is specified only:
> - 0001 only decodes when --decode-fd=path is specified
> - 0002 decodes whenever --decode-fd=<something> is specified
> The other commits are unit tests.
> Renaud.
-------------- 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/20211116/3a008720/attachment.bin>

More information about the Strace-devel mailing list