Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/ntfsprogs
In directory delta357:/tmp/cvs-serv3411/ntfsprogs
Modified Files:
ntfsmount.c
Log Message:
ntfsmount: always accept {f,d,}mask in octal to be as mount command
Index: ntfsmount.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -p -r1.97 -r1.98
--- ntfsmount.c 21 Nov 2006 15:31:10 -0000 1.97
+++ ntfsmount.c 21 Nov 2006 15:40:56 -0000 1.98
@@ -1506,7 +1506,7 @@ static char *parse_mount_options(const c
"value.\n");
goto err_exit;
}
- sscanf(val, "%i", &ctx->fmask);
+ sscanf(val, "%o", &ctx->fmask);
ctx->dmask = ctx->fmask;
} else if (!strcmp(opt, "fmask")) {
if (!val) {
@@ -1514,14 +1514,14 @@ static char *parse_mount_options(const c
"value.\n");
goto err_exit;
}
- sscanf(val, "%i", &ctx->fmask);
+ sscanf(val, "%o", &ctx->fmask);
} else if (!strcmp(opt, "dmask")) {
if (!val) {
ntfs_log_error("'dmask' option should have "
"value.\n");
goto err_exit;
}
- sscanf(val, "%i", &ctx->dmask);
+ sscanf(val, "%o", &ctx->dmask);
} else if (!strcmp(opt, "uid")) {
if (!val) {
ntfs_log_error("'uid' option should have "
|