diff --git a/changelog/unreleased/issue-5174 b/changelog/unreleased/issue-5174 new file mode 100644 index 000000000..7f7922a7a --- /dev/null +++ b/changelog/unreleased/issue-5174 @@ -0,0 +1,6 @@ +Enhancement: Enable xattr support, on NetBSD 10+ + +Restic now supports backing up, and restoring extended attributes, on systems running NetBSD 10, or later. + +https://github.com/restic/restic/issues/5174 +https://github.com/restic/restic/pull/5180 diff --git a/internal/fs/node_noxattr.go b/internal/fs/node_noxattr.go index 281a16dbd..726827f62 100644 --- a/internal/fs/node_noxattr.go +++ b/internal/fs/node_noxattr.go @@ -1,5 +1,5 @@ -//go:build aix || dragonfly || netbsd || openbsd -// +build aix dragonfly netbsd openbsd +//go:build aix || dragonfly || openbsd +// +build aix dragonfly openbsd package fs diff --git a/internal/fs/node_xattr.go b/internal/fs/node_xattr.go index e1ddf9826..1bdafc575 100644 --- a/internal/fs/node_xattr.go +++ b/internal/fs/node_xattr.go @@ -1,5 +1,5 @@ -//go:build darwin || freebsd || linux || solaris -// +build darwin freebsd linux solaris +//go:build darwin || freebsd || netbsd || linux || solaris +// +build darwin freebsd netbsd linux solaris package fs diff --git a/internal/fs/node_xattr_all_test.go b/internal/fs/node_xattr_all_test.go index 690302f70..81c931e24 100644 --- a/internal/fs/node_xattr_all_test.go +++ b/internal/fs/node_xattr_all_test.go @@ -1,5 +1,5 @@ -//go:build darwin || freebsd || linux || solaris || windows -// +build darwin freebsd linux solaris windows +//go:build darwin || freebsd || netbsd || linux || solaris || windows +// +build darwin freebsd netbsd linux solaris windows package fs diff --git a/internal/fs/node_xattr_test.go b/internal/fs/node_xattr_test.go index 3784dba45..7205e1fbe 100644 --- a/internal/fs/node_xattr_test.go +++ b/internal/fs/node_xattr_test.go @@ -1,5 +1,5 @@ -//go:build darwin || freebsd || linux || solaris -// +build darwin freebsd linux solaris +//go:build darwin || freebsd || netbsd || linux || solaris +// +build darwin freebsd netbsd linux solaris package fs