Skip to content

Commit 2ef86cc

Browse files
author
Gregory House
committed
Work in progress with traversal
1 parent 50b83b9 commit 2ef86cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/traversal/traversal.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os/exec"
77
"path/filepath"
88
"strings"
9-
"syscall"
9+
// "syscall"
1010

1111
"go.uber.org/zap"
1212

@@ -83,7 +83,8 @@ func ListFiles(path string, userID string) ([]FileEntry, error) {
8383
}
8484

8585
/* Open the file with O_NOFOLLOW to prevent symlink races */
86-
file, err := os.OpenFile(realEntryPath, os.O_RDONLY|syscall.O_NOFOLLOW, 0)
86+
// file, err := os.OpenFile(realEntryPath, os.O_RDONLY|syscall.O_NOFOLLOW, 0)
87+
file, err := os.Open(realEntryPath)
8788
if err != nil {
8889
zap.L().Warn("Failed to open file",
8990
zap.String("path", realEntryPath),

0 commit comments

Comments
 (0)