Under Ubuntu (tested with both 7.04 and 8.04) IDCheck shows the message
[: 100: 0: unexpected operatorThat happens because the variable EUID is not defined. I guess dash (Ubuntu's sh) is not as tolerant as Fedora's (which shows no message). Bellow a small patch for it.
HTH. Elder.
--- IDcheck.sh.ORIG 2008-04-27 22:36:44.000000000 -0300 +++ IDcheck.sh 2008-08-29 09:50:52.000000000 -0300 @@ -77,6 +77,8 @@ fi } +EUID=$(id -u) + if [ -e /etc/passwd -a ! -r /etc/passwd ] ; then echo "/etc/passwd not readable by uid $EUID" exit 1
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
