[Compatibility BUG]. Unusual additional system calls generated by uutils
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
uutils produces odd system calls (with null pathnames?) that are not present with GNU utils.
This causes oddities for processes running though pseudo (such as Yocto/OpenEmbeded builds).
This script (run on Kubuntu 25.10) shows the difference.
#!/bin/sh
# Assumes that pseudo is installed in /usr/bin
# and that libpseudo.so is in /usr/lib/x86_64-linux-gnu/pseudo/
#
# Set up the environment
#
rm -rf testenv testnew
mkdir -p testenv/bin testenv/var/pseudo
ln -s /usr/bin/pseudo testenv/bin/pseudo
# Set the environment variables to run pseudo
#
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/pseudo/libpseudo.so
PSEUDO_PREFIX=`pwd`/testenv
export LD_PRELOAD PSEUDO_PREFIX
# GNU install
#
echo "Running GNU install"
gnuinstall -d -m 755 testnew/dir/here
find testnew
echo "remove testnew with GNU rm"
gnurm -rf testnew
echo "GNU test done"
echo
# uutils (Rust) install
#
echo "Running uutils install"
install -d -m 755 testnew/dir/here
find testnew
echo "remove testnew with uutils rm"
rm -rf testnew
echo "uutils test done"
The output from this is:
[gmllaptop]: ./test.sh
Running GNU install
testnew
testnew/dir
testnew/dir/here
remove testnew with GNU rm
GNU test done
Running uutils install
couldn't allocate absolute path for 'null'.
testnew
testnew/dir
testnew/dir/here
remove testnew with uutils rm
couldn't allocate absolute path for 'null'.
uutils test done
Note the "couldn't allocate absolute path for 'null'." messages (from pseudo) messages produces by using uutils. From both the install and rm commands.
I suspect other commands do the same.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the supplied test.sh reproduction on Kubuntu with pseudo and compare GNU install/rm against the uutils commands. Trace the additional system calls or null pathnames from the install and rm entry points, then verify the pseudo warnings no longer appear and the behavior matches GNU utilities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100