mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Dont truncate the output file just to get tis permission bits
This commit is contained in:
@@ -121,7 +121,7 @@ func (self *Output) commit() {
|
||||
} else {
|
||||
self.dest.Close()
|
||||
if !self.is_stream {
|
||||
f, err := os.Create(self.arg)
|
||||
f, err := os.OpenFile(self.arg, os.O_CREATE|os.O_RDONLY, 0666)
|
||||
if err == nil {
|
||||
fi, err := f.Stat()
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user