1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- statfs() never stated that a disk was mounted for read-only access

because the wrong InfoData structure member was tested. Fixed.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14984 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-06-19 13:06:25 +00:00
parent cf74717ead
commit bf0a6e0c43
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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);