]> git.proxmox.com Git - systemd.git/commitdiff
Rebase patches
authorMichael Biebl <biebl@debian.org>
Wed, 2 Sep 2020 11:29:23 +0000 (13:29 +0200)
committerMichael Biebl <biebl@debian.org>
Wed, 2 Sep 2020 11:29:48 +0000 (13:29 +0200)
debian/patches/debian/Make-run-lock-tmpfs-an-API-fs.patch
debian/patches/debian/Revert-core-one-step-back-again-for-nspawn-we-actual.patch
debian/patches/debian/Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch
debian/patches/debian/fsckd-daemon-for-inter-fsckd-communication.patch
debian/patches/path-Improve-PATH-search-directory-case.patch [deleted file]
debian/patches/series

index 7d55d6c9f6dde3a81b1ce824dc169414be6797a6..e4d0de08512909d2c3a6691510e8153c3f6ef00e 100644 (file)
@@ -16,7 +16,7 @@ Closes: #751392
  2 files changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
-index feb88f3..db55854 100644
+index 39662eb..f21527d 100644
 --- a/src/core/mount-setup.c
 +++ b/src/core/mount-setup.c
 @@ -85,6 +85,8 @@ static const MountPoint mount_table[] = {
index 70550a9fe0d997971a1b7593c8b0e0f892af6b21..62ca6664294e680ff5eaca1a0fc0d4d26ceb8fdb 100644 (file)
@@ -14,7 +14,7 @@ Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1141137
  1 file changed, 1 insertion(+), 10 deletions(-)
 
 diff --git a/src/core/unit.c b/src/core/unit.c
-index 2c09def..77bb9fa 100644
+index 1bda568..11ae93e 100644
 --- a/src/core/unit.c
 +++ b/src/core/unit.c
 @@ -5003,16 +5003,7 @@ int unit_kill_context(
index 2c07a2d9d9fbcbc0c23354bab2759dabfd28bf93..04b44b2c3a72880733b817db2845e8f0bc0bf0c7 100644 (file)
@@ -19,10 +19,10 @@ Bug-Debian: https://bugs.debian.org/815020
  2 files changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/src/core/main.c b/src/core/main.c
-index 4a37697..2061e5d 100644
+index 9a834a8..2fb0e95 100644
 --- a/src/core/main.c
 +++ b/src/core/main.c
-@@ -2644,8 +2644,6 @@ int main(int argc, char *argv[]) {
+@@ -2660,8 +2660,6 @@ int main(int argc, char *argv[]) {
                          kernel_timestamp = DUAL_TIMESTAMP_NULL;
                  }
  
index fe6fbb331d882a4bdaa07e81ece19c3ab722ab1d..85eee47efa50dccd53ed27e17dddde41ec6e93b0 100644 (file)
@@ -973,7 +973,7 @@ index 0000000..4af8e45
 +        return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 +}
 diff --git a/units/meson.build b/units/meson.build
-index aa2ed11..8d7c0f6 100644
+index 275daad..302c600 100644
 --- a/units/meson.build
 +++ b/units/meson.build
 @@ -102,6 +102,7 @@ units = [
@@ -984,7 +984,7 @@ index aa2ed11..8d7c0f6 100644
          ['systemd-initctl.socket',              'HAVE_SYSV_COMPAT',
           'sockets.target.wants/'],
          ['systemd-journal-catalog-update.service', '',
-@@ -170,6 +171,7 @@ in_units = [
+@@ -171,6 +172,7 @@ in_units = [
          ['systemd-pstore.service',               'ENABLE_PSTORE'],
          ['systemd-fsck-root.service',            ''],
          ['systemd-fsck@.service',                ''],
diff --git a/debian/patches/path-Improve-PATH-search-directory-case.patch b/debian/patches/path-Improve-PATH-search-directory-case.patch
deleted file mode 100644 (file)
index 79a1523..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-From: Chris Down <chris@chrisdown.name>
-Date: Wed, 26 Aug 2020 18:49:27 +0100
-Subject: path: Improve $PATH search directory case
-
-Previously:
-
-1. last_error wouldn't be updated with errors from is_dir;
-2. We'd always issue a stat(), even for binaries without execute;
-3. We used stat() instead of access(), which is cheaper.
-
-This change avoids all of those, by only checking inside X_OK-positive
-case whether access() works on the path with an extra slash appended.
-Thanks to Lennart for the suggestion.
-
-(cherry picked from commit 33e1a5d8d3f792e1d98377fe439e123231032ec7)
----
- src/basic/path-util.c | 25 ++++++++++++++++++-------
- 1 file changed, 18 insertions(+), 7 deletions(-)
-
-diff --git a/src/basic/path-util.c b/src/basic/path-util.c
-index d3b4978..7b0863f7 100644
---- a/src/basic/path-util.c
-+++ b/src/basic/path-util.c
-@@ -637,16 +637,27 @@ int find_binary(const char *name, char **ret) {
-                 if (!j)
-                         return -ENOMEM;
--                if (is_dir(j, true))
--                        continue;
--
-                 if (access(j, X_OK) >= 0) {
--                        /* Found it! */
-+                        _cleanup_free_ char *with_dash;
--                        if (ret)
--                                *ret = path_simplify(TAKE_PTR(j), false);
-+                        with_dash = strjoin(j, "/");
-+                        if (!with_dash)
-+                                return -ENOMEM;
--                        return 0;
-+                        /* If this passes, it must be a directory, and so should be skipped. */
-+                        if (access(with_dash, X_OK) >= 0)
-+                                continue;
-+
-+                        /**
-+                         * We can't just `continue` inverting this case, since we need to update last_error.
-+                         */
-+                        if (errno == ENOTDIR) {
-+                                /* Found it! */
-+                                if (ret)
-+                                        *ret = path_simplify(TAKE_PTR(j), false);
-+
-+                                return 0;
-+                        }
-                 }
-                 /* PATH entries which we don't have access to are ignored, as per tradition. */
index 2e86163f3ccc7e6cd7b285a5b17098d2fa96f9f3..8597e4ac733298c457d9e3ac6839eb43c7796357 100644 (file)
@@ -1,7 +1,6 @@
 networkd-use-socket-activation-when-starting-networkd.patch
 test-network-stop-networkd-and-its-socket.patch
 seccomp-add-support-for-riscv64.patch
-path-Improve-PATH-search-directory-case.patch
 debian/Use-Debian-specific-config-files.patch
 debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch
 debian/Make-run-lock-tmpfs-an-API-fs.patch