diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2021-07-05 20:40:28 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2021-07-05 20:40:28 +0200 |
| commit | 4c4f7172f21af84dbbe50cf1bddfc160e33aec28 (patch) | |
| tree | 2bd8fb30faa9d33f7dc6a4d242fd994bc14c1551 /debian/patches/ubuntu_revert_systemd.patch | |
| parent | 5d67593e4f1329fc32a36adc5dbc445e7c606bd1 (diff) | |
Update packaging for the new version
Diffstat (limited to 'debian/patches/ubuntu_revert_systemd.patch')
| -rw-r--r-- | debian/patches/ubuntu_revert_systemd.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/debian/patches/ubuntu_revert_systemd.patch b/debian/patches/ubuntu_revert_systemd.patch deleted file mode 100644 index 2f5740cd..00000000 --- a/debian/patches/ubuntu_revert_systemd.patch +++ /dev/null @@ -1,48 +0,0 @@ -Index: network-manager/src/core/platform/nm-linux-platform.c -=================================================================== ---- network-manager.orig/src/core/platform/nm-linux-platform.c -+++ network-manager/src/core/platform/nm-linux-platform.c -@@ -29,7 +29,6 @@ - #include <poll.h> - #include <sys/ioctl.h> - #include <sys/socket.h> --#include <sys/statvfs.h> - #include <unistd.h> - - #include "nm-std-aux/unaligned.h" -@@ -9515,34 +9514,12 @@ constructed(GObject *_object) - } - } - --/* Similar to systemd's path_is_read_only_fs(), at -- * https://github.com/systemd/systemd/blob/v246/src/basic/stat-util.c#L132 */ --static int --path_is_read_only_fs(const char *path) --{ -- struct statvfs st; -- -- if (statvfs(path, &st) < 0) -- return -errno; -- -- if (st.f_flag & ST_RDONLY) -- return TRUE; -- -- /* On NFS, statvfs() might not reflect whether we can actually -- * write to the remote share. Let's try again with -- * access(W_OK) which is more reliable, at least sometimes. */ -- if (access(path, W_OK) < 0 && errno == EROFS) -- return TRUE; -- -- return FALSE; --} -- - NMPlatform * - nm_linux_platform_new(gboolean log_with_ptr, gboolean netns_support) - { - gboolean use_udev = FALSE; - -- if (nmp_netns_is_initial() && path_is_read_only_fs("/sys") == FALSE) -+ if (nmp_netns_is_initial() && access("/sys", W_OK) == 0) - use_udev = TRUE; - - return g_object_new(NM_TYPE_LINUX_PLATFORM, |