aboutsummaryrefslogtreecommitdiffhomepage
path: root/vfs
diff options
context:
space:
mode:
Diffstat (limited to 'vfs')
-rw-r--r--vfs/mountinfo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vfs/mountinfo.go b/vfs/mountinfo.go
index 77f6a35d..3c9e65ca 100644
--- a/vfs/mountinfo.go
+++ b/vfs/mountinfo.go
@@ -103,7 +103,7 @@ type (
// Flags interprets VfsOptstr and returns the resulting flags and unmatched options.
func (e *MountInfoEntry) Flags() (flags uintptr, unmatched []string) {
- for _, s := range strings.Split(e.VfsOptstr, ",") {
+ for s := range strings.SplitSeq(e.VfsOptstr, ",") {
switch s {
case "rw":
case "ro":