mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
mount read-only (Szaka)
(Logical change 1.86)
This commit is contained in:
parent
7d20cb5376
commit
de757075f4
@ -95,7 +95,7 @@ void ntfs_get_file_attributes(const char *dev, long int i)
|
||||
ntfs_inode *inode = NULL;
|
||||
//int error;
|
||||
|
||||
if(!(vol = ntfs_mount(dev, 0))) {
|
||||
if(!(vol = ntfs_mount(dev, MS_RDONLY))) {
|
||||
fprintf(stderr, "ntfsinfo error: cannot mount device %s\n",dev);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user