summaryrefslogtreecommitdiff
path: root/source3/client/smbmnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbmnt.c')
-rw-r--r--source3/client/smbmnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c
index ba2b1e9435..ce406179cf 100644
--- a/source3/client/smbmnt.c
+++ b/source3/client/smbmnt.c
@@ -148,8 +148,8 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data)
uname(&uts);
release = uts.release;
- major = strsep(&release, ".");
- minor = strsep(&release, ".");
+ major = strtok(release, ".");
+ minor = strtok(NULL, ".");
if (major && minor && atoi(major) == 2 && atoi(minor) < 4) {
/* < 2.4, assume struct */
data1 = (char *) data;