Correct typos in command-line parsing

Also fix stray macOS references.  References #869.
This commit is contained in:
Andrew Gaul 2018-12-06 22:19:54 -08:00
parent d9e89deef6
commit 3d225163f8
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ Some systems provide pre-built packages:
Compilation and installation from sources
-----------------------------------------
These are generic instructions to compile from the master branch, and should work on almost any GNU/Linux, Mac OS, BSD or similar.
These are generic instructions to compile from the master branch, and should work on almost any GNU/Linux, macOS, BSD, or similar.
If you want specific instructions for some distributions, check the [wiki](https://github.com/s3fs-fuse/s3fs-fuse/wiki/Installation-Notes).

View File

@ -4319,7 +4319,7 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
return 0;
}
// the second NONPOT option is the mountpoint(not utility mode)
// the second NONOPT option is the mountpoint(not utility mode)
if(0 == mountpoint.size() && 0 == utility_mode){
// save the mountpoint and do some basic error checking
mountpoint = arg;
@ -4359,9 +4359,9 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
// Unknown option
if(0 == utility_mode){
S3FS_PRN_EXIT("specified unknown third optioni(%s).", arg);
S3FS_PRN_EXIT("specified unknown third option(%s).", arg);
}else{
S3FS_PRN_EXIT("specified unknown second optioni(%s). you don't need to specify second option(mountpoint) for utility mode(-u).", arg);
S3FS_PRN_EXIT("specified unknown second option(%s). you don't need to specify second option(mountpoint) for utility mode(-u).", arg);
}
return -1;