I'm not certain at what Red Hat release the bash builtin MACHTYPE
started returning 'redhat' as its second '-' separated field, but it was
later than 7.3. (This is contrary to the documented behavior. I.e., 'man
bash' on Red Hat 7.3 says it *should* be 'redhat'.)
At any rate, the unexpected value of 'pc' makes the shipped
testcases/commands/cron/cron_deny01 fail on the 7.3 based distro I'm
supporting. The attached patch is my work-around. It checks for
/etc/issue first, and if the case insensitive string 'red hat' appears
in that file, it sets $tvar accordingly. If /etc/issue doesn't exist, my
patch then uses MACHID as in the original.
Apply with 'patch -p0 <cron_deny01_use_etc_issue.patch' from the level
above the unpacked ltp (or within that directory with '- p1') and then
make/make install as usual.
It works on Red Hat 7.3. I don't see why it shouldn't on RHEL3, or any
other Linux out there. I will likely be able to test it on RHEL3 ES, Red
Hat 8, Debian Sarge, SuSE 9.1 and Linspire 4.5, when I get a round
Howard Owen - Linux Architect "Even if you are on the right
IBM Global Services - Cisco Linux track, you'll get run over if you
howen@... +1-408-853-1381 just sit there." - Will Rogers
Get latest updates about Open Source Projects, Conferences and News.