keywords: fix xattrs for broken symlinks

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-09-01 15:52:24 -04:00
parent 3aa50a7a50
commit c805a855bd
Signed by: vbatts
GPG key ID: 10937E57733F1362
2 changed files with 82 additions and 0 deletions

View file

@ -59,6 +59,9 @@ var (
}
return strings.Join(klist, " "), nil
}
if !info.Mode().IsRegular() && !info.Mode().IsDir() {
return "", nil
}
xlist, err := xattr.List(path)
if err != nil {