The end goal of this patch is to make IDcheck.sh more rootfs- / cross-
compilation friendly, such that it can be run from the primary compile
instance, and instead of attempting to manipulate the target system
data, manipulate the sys-root / rootfs data through the use of DESTDIR
and by relaxing certain checks. Most of the checks were unnecessary
anyhow (am i root?), etc and can be easily remedied by just relying on
the other checks made by touch(1)'ing files and the post-process
operation, as ENOPERM will be returned if one cannot access the
configuration file of interest.

Also, use awk for all operations instead of grep because it will
reduces the potential for random failures when dealing with /etc/group
and /etc/passwd files, and we can switch over to one subroutine
instead of multiple subroutines for checks.

Signed-off-by: Garrett Cooper <[email protected]>

Attachment: IDcheck.sh-prefix-capable-and-less-strict.diff
Description: Binary data

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to