mirror of
https://github.com/restic/restic.git
synced 2026-10-13 21:47:12 +00:00
Fix test failures on Solaris
Add exceptions for symlinks, sticky bits, and device nodes in the same places where the BSDSs and/or Darwin have them.
This commit is contained in:
1 parent
df89aa0087
commit
2e9180638e
3 files changed
+6
-4
No files matched your search
@@ -67,7 +67,7 @@ func isSymlink(fi os.FileInfo) bool {
|
||||
|
||||
func sameModTime(fi1, fi2 os.FileInfo) bool {
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "freebsd", "openbsd", "netbsd":
|
||||
case "darwin", "freebsd", "openbsd", "netbsd", "solaris":
|
||||
if isSymlink(fi1) && isSymlink(fi2) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user