On Wed, Feb 15, 2023 at 05:03:48PM -0600, Eric Blake wrote: > > + > > +# Create subdirectories for triggering non-fatal internal error conditions > > of > > +# execvpe(). (Almost) every subdirectory will contain one entry, called > > "f". > > +# > > +# Create a directory that's empty. > > +mkdir empty > > + > > +# Create a directory with a named pipe (FIFO) in it. > > +mkdir fifo > > +mkfifo fifo/f > > + > > +# Create a directory with a non-executable file in it. > > +mkdir nxregf > > +touch nxregf/f > > + > > +# Create a symlink loop. > > +ln -s symlink symlink
Another interesting thing you might want to add to the test: mkdir -p subdir/f then show that PATH=...:subdir:... does not get tripped up by subdir/f/ having the execute bit set (aka search bit since it's a directory) but not being an executable. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs