ntfsmount: always accept {f,d,}mask in octal to be as mount command

edge.strict_endians
yura 2006-11-21 15:40:56 +00:00
parent b538578ab7
commit 4adc3817c6
1 changed files with 3 additions and 3 deletions

View File

@ -1506,7 +1506,7 @@ static char *parse_mount_options(const char *org_options)
"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 char *org_options)
"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 "