Skip to content

Commit 4d0c7e8

Browse files
committed
Fix not showing inaccessible devices with -all
1 parent 22f2d98 commit 4d0c7e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mounts_linux.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ func mounts() ([]Mount, []string, error) {
4646
err := unix.Statfs(mountPoint, &stat)
4747
if err != nil {
4848
if err != os.ErrPermission {
49-
warnings = append(warnings, fmt.Sprintf("%s: %s\n", mountPoint, err))
49+
warnings = append(warnings, fmt.Sprintf("%s: %s", mountPoint, err))
5050
continue
5151
}
5252

5353
stat = unix.Statfs_t{}
54-
continue
5554
}
5655

5756
d := Mount{

0 commit comments

Comments
 (0)