diff options
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 19ac13930..fc5161d7f 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1230,6 +1230,7 @@ static NOINLINE int nfsmount(struct mntent *mp, unsigned long vfsflags, char *fi | |||
1230 | * then data pointer is interpreted as a string. */ | 1230 | * then data pointer is interpreted as a string. */ |
1231 | struct nfs_mount_data data; | 1231 | struct nfs_mount_data data; |
1232 | char *opt; | 1232 | char *opt; |
1233 | char *tokstate; | ||
1233 | struct hostent *hp; | 1234 | struct hostent *hp; |
1234 | struct sockaddr_in server_addr; | 1235 | struct sockaddr_in server_addr; |
1235 | struct sockaddr_in mount_server_addr; | 1236 | struct sockaddr_in mount_server_addr; |
@@ -1348,7 +1349,7 @@ static NOINLINE int nfsmount(struct mntent *mp, unsigned long vfsflags, char *fi | |||
1348 | nfsvers = 0; | 1349 | nfsvers = 0; |
1349 | 1350 | ||
1350 | /* parse options */ | 1351 | /* parse options */ |
1351 | if (filteropts) for (opt = strtok(filteropts, ","); opt; opt = strtok(NULL, ",")) { | 1352 | if (filteropts) for (opt = strtok_r(filteropts, ",", &tokstate); opt; opt = strtok_r(NULL, ",", &tokstate)) { |
1352 | char *opteq = strchr(opt, '='); | 1353 | char *opteq = strchr(opt, '='); |
1353 | if (opteq) { | 1354 | if (opteq) { |
1354 | int val, idx; | 1355 | int val, idx; |