*Hi, tar with —directory and files with wildcard does not work correctly.POC$ tar --versiontar (GNU tar) 1.34Copyright (C) 2021 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html <https://gnu.org/licenses/gpl.html>>.This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.Written by John Gilmore and Jay Fenlason.$ pwd//tmp/debug/test$ tree.└── Source └── test1.log$ cat Source/test1.logInside Source Directory$ tar czf logs.tar.gz --directory="Source/" *.logtar: *.log: Cannot stat: No such file or directory**tar: Exiting with failure status due to previous errors*
*$ echo "Outside Source Directory" > test1.log$ tree.├── Source│ └── test1.log└── test1.log$ tar czf logs.tar.gz --directory="Source/" *.log$ lslogs.tar.gz Source test1.log$ rm test1.log$ lslogs.tar.gz Source$ tar -zxf logs.tar.gz$ lslogs.tar.gz Source test1.log$ cat test1.logInside Source Directory-> With latest Tar 1.35$ ../tar-1.35/src/tar --versiontar (GNU tar) 1.35Copyright (C) 2023 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html <https://gnu.org/licenses/gpl.html>>.This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.Written by John Gilmore and Jay Fenlason.$ ../tar-1.35/src/tar czf logs.tar.gz --directory="Source/" *.log../tar-1.35/src/tar: *.log: Cannot stat: No such file or directory../tar-1.35/src/tar: Exiting with failure status due to previous errors* *Expected behaviour: tar should look for files with wildcards in the directory specified by the —directory parameter.* -- *Thanks,* *0xc0defade*