--- autofs-4.1.4/samples/rc.autofs.in 2006-08-22 14:48:51.000000000 +0100 +++ autofs.bug 2006-08-22 14:52:02.000000000 +0100 @@ -562,7 +562,14 @@ ps axwww|grep "[0-9]:[0-9][0-9] $DAEMON " | ( while read pid tt stat time command; do echo "$command" >>$TMP2 - if ! grep -q "^$command" $TMP1; then +# In order to check for changes we need to find the line, if any, +# corresponding to this mountpoint with *any* options and see whether +# it is what we want...this allows for changing options. +# +# if ! grep -q "^$command" $TMP1; then + mpoint=`get_fpath2 $command` + mpoint_com=`grep " $mpoint " $TMP1` + if [ "$command" != "$mpoint_com" ]; then if ! echo "$command" | grep -q -e --submount; then kill -USR2 $pid 2> /dev/null echo $"Stop $command" @@ -574,7 +581,14 @@ done ) cat $TMP1 | ( while read x; do - if ! grep -q "^$x" $TMP2; then +# Again - we can't rely on the options being unchanged, so get the +# command for this mountpoint and check it is there verbatim +# +# if ! grep -q "^$x" $TMP2; then +# + mpoint=`get_fpath2 $x` + mpoint_com=`grep " $mpoint " $TMP2` + if [ "$x" != "$mpoint_com" ]; then $x echo $"Start $x" fi