fam
[Top] [All Lists]

Re: [fam] FAM on Solaris 8+

To: Moredhel@xxxxxxxxxxxxx
Subject: Re: [fam] FAM on Solaris 8+
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Jun 2000 14:09:37 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: "Mark R. Bowyer" <Moredhel@xxxxxxxxxxxxx> "[fam] FAM on Solaris 8+" (Jun 7, 6:01pm)
References: <200006071702.SAA11783@xxxxxxxxxxxxxxxxxx>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> So I did a bit of hunting and found this in the Solaris-fixed version of
> FileSystemTable.c++, line 120:
>
>   #ifdef HAVE_SUN
>       FILE *mtab = fopen(mtab_name, "r+");
>   #else
>       FILE *mtab = setmntent(mtab_name, "r+");
>   #endif
>
> Now, I couldn't see the need for "r+" for this, so I fixed it to be just "r".
> And with that, it all suddenly worked as expected.
>
> So, I suppose my question is - why is fam attempting to open what should
> always be a read-only file as "r+", especially since it never attempts to
> write to it anyway?  Is this something that should be changed for all
> versions of fam, or just for use on Solaris 8 and above (I'm actually
> working on an Update beta release)?

I don't think anyone's had a problem with it anywhere but on Solaris 8.  I
think I'll be integrating Christian's patch today, & I will make it "r"
instead of "r+".  (As far as why it's r+ instead of r to begin with, I don't
know.)

--Rusty

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>