diff options
Diffstat (limited to 'mount.cifs.c')
-rw-r--r-- | mount.cifs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mount.cifs.c b/mount.cifs.c index 6935fe1..0ed9d0a 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -192,7 +192,7 @@ struct parsed_mount_info { }; static const char *thisprogram; -static const char *cifs_fstype = "cifs"; +static const char *cifs_fstype; static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info); @@ -1986,6 +1986,12 @@ int main(int argc, char **argv) if (thisprogram == NULL) thisprogram = "mount.cifs"; + if(strcmp(thisprogram, "mount.cifs") == 0) + cifs_fstype = "cifs"; + + if(strcmp(thisprogram, "mount.smb3") == 0) + cifs_fstype = "smb3"; + /* allocate parsed_info as shared anonymous memory range */ parsed_info = mmap((void *)0, sizeof(*parsed_info), PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); |