提交 d10bd4fb 编写于 作者: W wangkang101

update vendor package, make log file permissions more restrictive

Signed-off-by: Nwangkang101 <873229877@qq.com>
上级 3376646d
......@@ -30,7 +30,7 @@ bin: bep
.PHONY: install
install:
install -m 0750 ./bin/isula-transform /usr/bin/isula-transform
install -m 0550 ./bin/isula-transform /usr/bin/isula-transform
.PHONY: binclean
binclean:
......
......@@ -32,7 +32,7 @@ require (
google.golang.org/grpc v1.29.0
google.golang.org/protobuf v1.21.0
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/natefinch/lumberjack.v2 v2.0.1-0.20190411184413-94d9e492cc53
gotest.tools v2.2.0+incompatible // indirect
)
......
......@@ -513,7 +513,7 @@ License: BSD-2-Clause
Please see above.
Software:
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/natefinch/lumberjack.v2 v2.0.1-0.20190411184413-94d9e492cc53
Copyright notice:
Copyright (c) 2014 Nate Finch
License: MIT
......
......@@ -206,13 +206,13 @@ func (l *Logger) rotate() error {
// openNew opens a new log file for writing, moving any old log file out of the
// way. This methods assumes the file has already been closed.
func (l *Logger) openNew() error {
err := os.MkdirAll(l.dir(), 0744)
err := os.MkdirAll(l.dir(), 0755)
if err != nil {
return fmt.Errorf("can't make directories for new logfile: %s", err)
}
name := l.filename()
mode := os.FileMode(0644)
mode := os.FileMode(0600)
info, err := os_Stat(name)
if err == nil {
// Copy the mode off the old logfile.
......@@ -288,7 +288,7 @@ func (l *Logger) openExistingOrNew(writeLen int) error {
return nil
}
// genFilename generates the name of the logfile from the current time.
// filename generates the name of the logfile from the current time.
func (l *Logger) filename() string {
if l.Filename != "" {
return l.Filename
......
......@@ -170,5 +170,5 @@ google.golang.org/protobuf/runtime/protoimpl
google.golang.org/protobuf/types/known/anypb
google.golang.org/protobuf/types/known/durationpb
google.golang.org/protobuf/types/known/timestamppb
# gopkg.in/natefinch/lumberjack.v2 v2.0.0
# gopkg.in/natefinch/lumberjack.v2 v2.0.1-0.20190411184413-94d9e492cc53
gopkg.in/natefinch/lumberjack.v2
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册