8000 api/debug: fix the path of temporary file for checking logdir is writable by yoomee1313 · Pull Request #1884 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

api/debug: fix the path of temporary file for checking logdir is writable #1884

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func validateLogLocation(path string) error {
return fmt.Errorf("error creating the directory: %w", err)
}
// Check if the path is writable by trying to create a temporary file
tmp := filepath.Join(path, ".temp")
tmp := path + ".temp"
if f, err := os.Create(tmp); err != nil {
return err
} else {
Expand Down
0