Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42f8bee633 |
@@ -244,7 +244,9 @@ func pruneRoots(roots []string, oneFS bool,
|
|||||||
// whatever device the file reports, so for a regular-file
|
// whatever device the file reports, so for a regular-file
|
||||||
// operand its directory decides.
|
// operand its directory decides.
|
||||||
dir := r
|
dir := r
|
||||||
if fi, err := os.Lstat(r); err == nil && fi.Mode().IsRegular() {
|
|
||||||
|
fi, err := os.Lstat(r)
|
||||||
|
if err == nil && fi.Mode().IsRegular() {
|
||||||
dir = filepath.Dir(r)
|
dir = filepath.Dir(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user