Merge pull request #610 from Lomanic/issue555

[disk][linux] Fix #555 Unescape escaped sequences in fstab path in disk.Partitions
This commit is contained in:
Lomanic 2018-11-19 07:42:09 +01:00 committed by GitHub
commit b0c24b4251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
fields := strings.Fields(line)
d := PartitionStat{
Device: fields[0],
Mountpoint: fields[1],
Mountpoint: unescapeFstab(fields[1]),
Fstype: fields[2],
Opts: fields[3],
}