mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-27 03:53:48 +08:00
Working with regular files needs no longer --force, except for mkntfs
This commit is contained in:
parent
01585fd7cd
commit
8b1263c217
@ -43,6 +43,8 @@ xx/xx/2005 - 1.12.2-WIP
|
||||
- Add some debugging to ntfsdecrypt.c to allow printing of the private
|
||||
key after it is decrypted (this is ifdeffed out by default). (Anton)
|
||||
- fflush() ntfs_log_ streams. (Christophe)
|
||||
- Working with regular files needs no longer the --force option,
|
||||
except for mkntfs. (Szaka)
|
||||
|
||||
10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs.
|
||||
|
||||
|
@ -133,10 +133,12 @@ int utils_valid_device(const char *name, int force)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!S_ISBLK(st.st_mode)) {
|
||||
ntfs_log_warning("%s is not a block device.\n", name);
|
||||
if (!S_ISBLK(st.st_mode) && !S_ISREG(st.st_mode)) {
|
||||
ntfs_log_warning("%s is not a block device, "
|
||||
"nor regular file.\n", name);
|
||||
if (!force) {
|
||||
ntfs_log_error("Use the force option to work with files.\n");
|
||||
ntfs_log_error("Use the force option to work with other"
|
||||
" file types, for your own risk!\n");
|
||||
return 0;
|
||||
}
|
||||
ntfs_log_warning("Forced to continue.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user