SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
sysutils/deja-dup/patches/patch-app_RestoreFileTester_vala
Normal file
22
sysutils/deja-dup/patches/patch-app_RestoreFileTester_vala
Normal file
|
@ -0,0 +1,22 @@
|
|||
No euidaccess on OpenBSD
|
||||
|
||||
Index: app/RestoreFileTester.vala
|
||||
--- app/RestoreFileTester.vala.orig
|
||||
+++ app/RestoreFileTester.vala
|
||||
@@ -75,12 +75,12 @@ public class RestoreFileTester : Object
|
||||
// a file in it. But testing write access is probably good enough for now.
|
||||
exists = false;
|
||||
string iter = path;
|
||||
- int access = -1;
|
||||
- while (access != 0 && Posix.errno == Posix.ENOENT) {
|
||||
+ int has_access = -1;
|
||||
+ while (has_access != 0 && Posix.errno == Posix.ENOENT) {
|
||||
iter = Path.get_dirname(iter);
|
||||
- access = Posix.euidaccess(iter, Posix.W_OK | Posix.X_OK);
|
||||
+ has_access = Posix.access(iter, Posix.W_OK | Posix.X_OK);
|
||||
}
|
||||
- if (access != 0)
|
||||
+ if (has_access != 0)
|
||||
return false;
|
||||
}
|
||||
} else {
|
Loading…
Add table
Add a link
Reference in a new issue