From 88885374973702ac300ca05215da931efc9ec74a Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sun, 18 Nov 2018 20:39:18 +0100 Subject: [PATCH] [disk][linux] Fix #555 Unescape escaped sequences in fstab path in disk.Partitions --- disk/disk_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_linux.go b/disk/disk_linux.go index 1b10a38..3d68936 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -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], }