Compare commits
2 Commits
d031c820ff
...
60e91b9b0f
Author | SHA1 | Date |
---|---|---|
Ophestra Umiker | 60e91b9b0f | |
Ophestra Umiker | d9cb2a9f2b |
|
@ -91,7 +91,7 @@ func parseConfig(p string, puid int) (fid int, ok bool) {
|
||||||
} else if s.Mode().Perm() != 0400 {
|
} else if s.Mode().Perm() != 0400 {
|
||||||
log.Fatal("bad fsurc perm")
|
log.Fatal("bad fsurc perm")
|
||||||
} else if st := s.Sys().(*syscall.Stat_t); st.Uid != 0 || st.Gid != 0 {
|
} else if st := s.Sys().(*syscall.Stat_t); st.Uid != 0 || st.Gid != 0 {
|
||||||
log.Fatal("fsurc must be owner by uid 0")
|
log.Fatal("fsurc must be owned by uid 0")
|
||||||
}
|
}
|
||||||
|
|
||||||
if r, err := os.Open(p); err != nil {
|
if r, err := os.Open(p); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue