mirror of https://github.com/perkeep/perkeep.git
schema: permissions on symlinks are irrelevant
This commit is contained in:
parent
8b8f462f6a
commit
d81d6211d5
|
@ -138,7 +138,9 @@ func NewCommonFileMap(fileName string, fi *os.FileInfo) map[string]interface{} {
|
|||
}
|
||||
|
||||
// Common elements (from file-common.txt)
|
||||
m["unixPermission"] = fmt.Sprintf("0%o", fi.Permission())
|
||||
if !fi.IsSymlink() {
|
||||
m["unixPermission"] = fmt.Sprintf("0%o", fi.Permission())
|
||||
}
|
||||
if fi.Uid != -1 {
|
||||
m["unixOwnerId"] = fi.Uid
|
||||
if user := getUserFromUid(fi.Uid); user != "" {
|
||||
|
|
Loading…
Reference in New Issue