diff options
| author | 郝宇 (Yu Hao) <yhao016@ucr.edu> | 2023-03-25 22:49:43 -0700 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-03-27 11:47:19 +0200 |
| commit | 174dbe701f33347fea87dba934a9d60dec1a4296 (patch) | |
| tree | 4efcf6cddc5a0d7c12cbdbd591517ec3d749c660 /tools/syz-fmt | |
| parent | 099768ae6c3a251f1169f69e68d83eb7f2f49a05 (diff) | |
tools/syz-fmt.go: fix a bug of file info api when updating golang
Diffstat (limited to 'tools/syz-fmt')
| -rw-r--r-- | tools/syz-fmt/syz-fmt.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-fmt/syz-fmt.go b/tools/syz-fmt/syz-fmt.go index 36b172388..2fe918951 100644 --- a/tools/syz-fmt/syz-fmt.go +++ b/tools/syz-fmt/syz-fmt.go @@ -44,7 +44,8 @@ func main() { if !strings.HasSuffix(file.Name(), ".txt") { continue } - processFile(filepath.Join(arg, file.Name()), file.Type()) + info, _ := file.Info() + processFile(filepath.Join(arg, file.Name()), info.Mode()) } } else { processFile(arg, st.Mode()) |
