[LTP] [PATCH v2 1/1] isofs.sh: Use nobody user
Petr Vorel
pvorel@suse.cz
Mon Sep 2 09:16:15 CEST 2024
Hi Wei,
> > +TEST_USER='nobody'
> > +
> > +setup()
> > +{
> > + TEST_GROUP="$(id -g -n $TEST_USER)"
> > + [ "$TEST_GROUP" ] || TEST_GROUP="$TEST_USER"
> If $TEST_GROUP can not be found then this case will failed unless we create new group.
> My suggestion is remove above line totally or we start create group for nobody user.
That check is a fallback if 'id' is not installed but there is requested
nobody:nobody or nobody/nogroup group set by IDcheck.sh or manually.
But sure, I can delete it if we expect id to be installed. I just did not want
to require 'id' for this test when there can be a workaround.
Kind regards,
Petr
More information about the ltp
mailing list