- Implemented TUI auto-select for automated testing - Fixed TUI automation: autoSelectMsg handling in Update() - Auto-database selection in DatabaseSelector - Created focused test suite (test_as_postgres.sh) - Created retention policy test (test_retention.sh) - All 10 security tests passing Features validated: ✅ Backup retention policy (30 days, min backups) ✅ Rate limiting (exponential backoff) ✅ Privilege checks (root detection) ✅ Resource limit validation ✅ Path sanitization ✅ Checksum verification (SHA-256) ✅ Audit logging ✅ Secure permissions ✅ Configuration persistence ✅ TUI automation framework Test results: 10/10 passed Backup files created with .dump, .sha256, .info Retention cleanup verified (old files removed)
12 lines
400 B
Go
Executable File
12 lines
400 B
Go
Executable File
// +build netbsd
|
|
|
|
package restore
|
|
|
|
// getDiskSpace returns available disk space in bytes (NetBSD fallback)
|
|
// NetBSD has different syscall interface, so we use a conservative estimate
|
|
func getDiskSpace(path string) (int64, error) {
|
|
// Return a large value to skip disk space check on NetBSD
|
|
// This is a fallback - restore will still work, just won't pre-check space
|
|
return 1 << 40, nil // 1 TB
|
|
}
|