Operating System - HP-UX
1759942 Members
3162 Online
108889 Solutions
New Discussion юеВ

Buglet in nfs_xmnt (NFS toolkit)

 
SOLVED
Go to solution
Gregory D Baker
Frequent Advisor

Buglet in nfs_xmnt (NFS toolkit)

I can't believe this hasn't been noticed before, but there's something really obviously wrong in the nfs_xmnt script, even as recently as 11.31.03.

Line 34 looks like this:
ALREADY_MOUNTED=`mount | grep "^${CNFS[$G]}"`
Line 35 goes on:
if [[ -z "$ALREADY_MOUNTED" ]]; then
....


Suppose I had
CNFS[0]=/u ; SNFS[0]=some-package:/some/where
at the top of the script.

Then even when /u is not mounted, ALREADY_MOUNTED will still not be the empty string, because the grep will have matched /usr. And /usr is usually mounted from somewhere (e.g. a disk) on my boxes.

Shouldn't line 34 be
ALREADY_MOUNTED=`mount | grep "^${CNFS[$G]} "`

i.e. with an extra space at the end?

I would log this as a support call but none of my machines are under support.

'Tis a pity I can't get ITRC points for finding and fixing bugs for HP. That's my second this year, and it's only just March. ;-)
2 REPLIES 2
Dennis Handly
Acclaimed Contributor
Solution

Re: Buglet in nfs_xmnt (NFS toolkit)

>i.e. with an extra space at the end?

It sure looks like it.
Eric SAUBIGNAC
Honored Contributor

Re: Buglet in nfs_xmnt (NFS toolkit)

Bonjour,

Got about the same bug a few years ago ... Find in attachement how I have modified at that time "nfs_xmnt.sh" in order to have it working properly

Since this time I no more used nfs_xmnt.sh If necessary I try to work with automounter

HTH

Eric