summaryrefslogtreecommitdiffstats
path: root/source/client/smbmnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/smbmnt.c')
-rw-r--r--source/client/smbmnt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/client/smbmnt.c b/source/client/smbmnt.c
index ce406179cfd..36248987b1e 100644
--- a/source/client/smbmnt.c
+++ b/source/client/smbmnt.c
@@ -111,13 +111,13 @@ fullpath(const char *p)
OK then we change into that directory - this prevents race conditions */
static int mount_ok(char *mount_point)
{
- struct stat st;
+ SMB_STRUCT_STAT st;
if (chdir(mount_point) != 0) {
return -1;
}
- if (stat(".", &st) != 0) {
+ if (sys_stat(".", &st) != 0) {
return -1;
}
@@ -148,8 +148,8 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data)
uname(&uts);
release = uts.release;
- major = strtok(release, ".");
- minor = strtok(NULL, ".");
+ major = strsep(&release, ".");
+ minor = strsep(&release, ".");
if (major && minor && atoi(major) == 2 && atoi(minor) < 4) {
/* < 2.4, assume struct */
data1 = (char *) data;