mount read-only (Szaka)

(Logical change 1.86)
This commit is contained in:
cantab.net!aia21 2003-01-10 17:00:47 +00:00
parent 7d20cb5376
commit de757075f4

View File

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