summaryrefslogtreecommitdiffstats
path: root/debian/patches/always-run-generator.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 06:03:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 06:03:02 +0000
commitedd02aa960301b52f94c88efb6fae0d3ca79b548 (patch)
tree5cec2df47f338a42883a0e6189028df4f4ec6077 /debian/patches/always-run-generator.patch
parentAdding upstream version 1:2.6.4. (diff)
downloadnfs-utils-edd02aa960301b52f94c88efb6fae0d3ca79b548.tar.xz
nfs-utils-edd02aa960301b52f94c88efb6fae0d3ca79b548.zip
Adding debian version 1:2.6.4-3.debian/1%2.6.4-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/always-run-generator.patch')
-rw-r--r--debian/patches/always-run-generator.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/always-run-generator.patch b/debian/patches/always-run-generator.patch
new file mode 100644
index 0000000..f169e69
--- /dev/null
+++ b/debian/patches/always-run-generator.patch
@@ -0,0 +1,23 @@
+Description: Always run the generator
+ Run the generator even if the pipefs-directory setting is the default one.
+Author: Andreas Hasenack <andreas@canonical.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1971935
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014429
+Forwarded: https://lore.kernel.org/linux-nfs/EE39279C-4E40-48C8-ABC9-707EB1AD6D79@redhat.com/
+Last-Update: 2022-07-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/systemd/rpc-pipefs-generator.c b/systemd/rpc-pipefs-generator.c
+index c24db567..7c42431f 100644
+--- a/systemd/rpc-pipefs-generator.c
++++ b/systemd/rpc-pipefs-generator.c
+@@ -139,9 +139,6 @@ int main(int argc, char *argv[])
+ s = conf_get_str("general", "pipefs-directory");
+ if (!s)
+ exit(0);
+- if (strlen(s) == strlen(RPC_PIPEFS_DEFAULT) &&
+- strcmp(s, RPC_PIPEFS_DEFAULT) == 0)
+- exit(0);
+
+ if (is_non_pipefs_mountpoint(s))
+ exit(1);