Subrata Modak wrote:
Sorry,
But it intrudes install errors in my system:
Checking for required user/group ids
./IDcheck.sh: line 80: EUID: readonly variable
make: *** [install] Error 1
Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386
GNU/Linux
Regards--
Subrata
OOPS. Sorry for that. I think the following works fine (I tested it with
both bash and sh - aka dash in Ubuntu).
Regards.
Elder.
--- IDcheck.sh.ORIG 2008-04-27 22:36:44.000000000 -0300
+++ IDcheck.sh 2008-08-29 14:38:57.000000000 -0300
@@ -77,6 +77,10 @@
fi
}
+if [ -z ${EUID} ] ; then
+ EUID=$(id -u)
+fi
+
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