summaryrefslogtreecommitdiff
path: root/databases/py-barman/patches/patch-barman_utils.py
blob: c5ee25b8379dbff8aead5cf8f419008679c2fabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-barman_utils.py,v 1.3 2018/08/14 14:47:55 adam Exp $

Make portable for non-glibc platforms too.

--- barman/utils.py.orig	2016-02-22 08:01:31.000000000 +0000
+++ barman/utils.py
@@ -253,7 +253,7 @@ def fsync_dir(dir_path):
     :param str dir_path: The directory to sync
     :raise OSError: If fail opening the directory
     """
-    dir_fd = os.open(dir_path, os.O_DIRECTORY)
+    dir_fd = os.open(dir_path, os.O_RDONLY)
     try:
         os.fsync(dir_fd)
     except OSError as e: