Merge pull request #104 from nwf-msr/202206-small-fixes
Two small patches
This commit is contained in:
commit
61d3ae4166
|
@ -95,8 +95,8 @@ static int fs_open(const char *path, struct fuse_file_info *fi)
|
||||||
if (!link) {
|
if (!link) {
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
if ((fi->flags & 3) != O_RDONLY) {
|
if ((fi->flags & O_RDWR) != O_RDONLY) {
|
||||||
return -EACCES;
|
return -EROFS;
|
||||||
}
|
}
|
||||||
if (CACHE_SYSTEM_INIT) {
|
if (CACHE_SYSTEM_INIT) {
|
||||||
fi->fh = (uint64_t) Cache_open(path);
|
fi->fh = (uint64_t) Cache_open(path);
|
||||||
|
|
|
@ -169,7 +169,7 @@ void parse_config_file(char ***argv, int *argc)
|
||||||
static int
|
static int
|
||||||
parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
|
parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
|
||||||
{
|
{
|
||||||
char c;
|
int c;
|
||||||
int long_index = 0;
|
int long_index = 0;
|
||||||
const char *short_opts = "o:hVdfsp:u:P:";
|
const char *short_opts = "o:hVdfsp:u:P:";
|
||||||
const struct option long_opts[] = {
|
const struct option long_opts[] = {
|
||||||
|
|
Loading…
Reference in New Issue