diff options
Diffstat (limited to 'fatfs')
-rw-r--r-- | fatfs/ChangeLog | 4 | ||||
-rw-r--r-- | fatfs/pager.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog index 73295084..d7d65a94 100644 --- a/fatfs/ChangeLog +++ b/fatfs/ChangeLog @@ -1,3 +1,7 @@ +2005-07-12 Marcus Brinkmann <marcus@gnu.org> + + * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT. + 2003-08-09 Marcus Brinkmann <marcus@gnu.org> * fat.h: Include <byteswap.h>. diff --git a/fatfs/pager.c b/fatfs/pager.c index ef5a945b..22adb089 100644 --- a/fatfs/pager.c +++ b/fatfs/pager.c @@ -790,7 +790,7 @@ diskfs_get_filemap (struct node *node, vm_prot_t prot) malloc (sizeof (struct user_pager_info)); upi->type = FILE_DATA; upi->node = node; - upi->max_prot = 0; + upi->max_prot = prot; diskfs_nref_light (node); node->dn->pager = pager_create (upi, pager_bucket, MAY_CACHE, |