While I was looking around why /var/volatiles/appshadow isn't created
during system boot, I stopped at one line in /etc/init.d/mountall.sh:
ROOT_HOME="`grep root /etc/passwd | cut -d: -f6`"
This assumes that the string "root" appears only once in /etc/passwd.
You run into trouble when you add a user like "brootje", or someone
has a similar string in his gecos field. This patch makes sure that
only the value for root's entry is returned:
--- mountall.sh.orig
+++ mountall.sh
@@ -41,7 +41,7 @@
if test -e /etc/passwd
then
- ROOT_HOME="`grep root /etc/passwd | cut -d: -f6`"
+ ROOT_HOME="`grep \"^root:\" /etc/passwd | cut -d: -f6`"
if test -n "$ROOT_HOME"
then
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel