> 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
|