keywords: don't fail on presence of "flags"

BSD file's support "flags". These have some similarity with xattr, but
for specific features, rather than general purpose key/values.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-10-31 13:25:11 -04:00
parent 84f1e6ebc6
commit e45837faea
Signed by: vbatts
GPG key ID: 10937E57733F1362
3 changed files with 23 additions and 1 deletions

15
keywords_bsd.go Normal file
View file

@ -0,0 +1,15 @@
// +build darwin freebsd netbsd openbsd
package mtree
import (
"io"
"os"
)
var (
flagsKeywordFunc = func(path string, info os.FileInfo, r io.Reader) (string, error) {
// ideally this will pull in from here https://www.freebsd.org/cgi/man.cgi?query=chflags&sektion=2
return "", nil
}
)