Hi
I found this address in the /etc/init.d/autofs file
Is this the correct address for autofs bug reports?

If not could you please point me in the right direction.

I have noticed a problem with autofs-3.1.7-28 installed on
Redhat release 7.3.

The function getmounts has code to screen out duplicate directories

The problem is in the code fragment

   -a "echo `echo "knownmaps" | grep $dir/`" = "" ]

This greps for the map mount directory in the list of know maps and skips
the map if it finds anything.

Unfortunately it can't distinguish between the maps
/cr/pc   pcsomthing.auto
/pc      pcsomethingelse.auto

This caused a little confusing here as both maps had been working fine for
many years on our other Unix systems.  I have solved the problem by
changing one of the map paths.

I haven't been about to think of a change to the grep arguments, which
would fix this problem without breaking of other legal but rare directory
names.
For example you could force grep to match a space  before $dir
e.g. grep \ $dir
but this could break on directory names, which contain spaces.

Another approach would be for /etc/init.d/autofs start
To report any maps that were skipped and why.


All the best



Richard Westlake

School of Crystallography, Birkbeck College, Malet Street, London WC1E 7HX
Tel: 020-7631-6859
----------------------------------------------------------------------
               Truth endures but spelling changes    --  Anon.
----------------------------------------------------------------------


_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to