Use the base name of the named pipe for the created temp file
This commit is contained in:
parent
7ef2fe53e0
commit
b5cbb501a4
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ func resolve_path(path string) (ans string, is_dir bool, err error) {
|
|||
return
|
||||
}
|
||||
defer src.Close()
|
||||
if dest, err = os.CreateTemp("", fmt.Sprintf("*-pipe-%d", len(temp_files)+1)); err != nil {
|
||||
if dest, err = os.CreateTemp("", fmt.Sprintf("*-pipe-%s", filepath.Base(path))); err != nil {
|
||||
return
|
||||
}
|
||||
defer dest.Close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue