diff --git a/library/changes b/library/changes index 2bdb927..289563c 100644 --- a/library/changes +++ b/library/changes @@ -7,6 +7,9 @@ - Added ftello() and fseeko() which both merely call the equivalent (at least for clib2) ftell() and fseek() functions, respectively. +- statfs() never stated that a disk was mounted for read-only access + because the wrong InfoData structure member was tested. Fixed. + c.lib 1.193 (4.6.2005) diff --git a/library/mount_convertinfo.c b/library/mount_convertinfo.c index 2b016d2..29d0b18 100644 --- a/library/mount_convertinfo.c +++ b/library/mount_convertinfo.c @@ -1,5 +1,5 @@ /* - * $Id: mount_convertinfo.c,v 1.2 2005-01-02 09:07:07 obarthel Exp $ + * $Id: mount_convertinfo.c,v 1.3 2005-06-19 13:06:25 obarthel Exp $ * * :ts=4 * @@ -86,7 +86,7 @@ __convert_info_to_statfs(struct InfoData * id,struct statfs * f) f->f_ffree = LONG_MAX; f->f_flags = MNT_NOATIME|MNT_SYMPERM|MNT_LOCAL; - if(id->id_DiskType != ID_VALIDATED) + if(id->id_DiskState != ID_VALIDATED) SET_FLAG(f->f_flags,MNT_RDONLY); SHOWVALUE(f->f_bsize);