Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
f95d2f25
Commit
f95d2f25
authored
Dec 18, 2023
by
Michael Yang
Browse files
fix temporary history file permissions
parent
2b9892a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
readline/history.go
readline/history.go
+1
-1
No files found.
readline/history.go
View file @
f95d2f25
...
@@ -132,7 +132,7 @@ func (h *History) Save() error {
...
@@ -132,7 +132,7 @@ func (h *History) Save() error {
tmpFile
:=
h
.
Filename
+
".tmp"
tmpFile
:=
h
.
Filename
+
".tmp"
f
,
err
:=
os
.
OpenFile
(
tmpFile
,
os
.
O_CREATE
|
os
.
O_WRONLY
|
os
.
O_TRUNC
|
os
.
O_APPEND
,
0
o6
66
)
f
,
err
:=
os
.
OpenFile
(
tmpFile
,
os
.
O_CREATE
|
os
.
O_WRONLY
|
os
.
O_TRUNC
|
os
.
O_APPEND
,
0
o6
00
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment