Commit ae28f05
committed
Parse mount point options with spaces correctly on OpenBSD
Filesystems shared via exports(5) appear like this:
```
$ mount | grep exported
/dev/sd0a on / type ffs (NFS exported, local, noatime, wxallowed)
```
Instead of splitting the line on any whitespace:
- partition it at the opening parenthese,
- split the left side like before,
- drop the closing parenthese in the right half
- and split it options on comma+whitespace:
```
$ facter mountpoints./.options
[
- "NFS",
- "exported",
+ "NFS exported",
"local",
"noatime",
"wxallowed"
]
```1 parent 0d524a1 commit ae28f05
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments