Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1From cfb80587da7bf3d6a8eeb9b846702d6d731aa1c6 Mon Sep 17 00:00:00 2001 2From: Karel Zak <kzak@redhat.com> 3Date: Wed, 9 Apr 2025 11:32:08 +0200 4Subject: [PATCH] libmount: (subdir) remove unused code 5 6The optlist already handles quoted values, so there's no need to do it 7in the callers. 8 9Signed-off-by: Karel Zak <kzak@redhat.com> 10(cherry picked from commit 5462fa3435544344727b8644205ae427dfd5fcba) 11--- 12 libmount/src/hook_subdir.c | 3 --- 13 1 file changed, 3 deletions(-) 14 15diff --git a/libmount/src/hook_subdir.c b/libmount/src/hook_subdir.c 16index 5949af7d8..1e5d79958 100644 17--- a/libmount/src/hook_subdir.c 18+++ b/libmount/src/hook_subdir.c 19@@ -329,9 +329,6 @@ static int is_subdir_required(struct libmnt_context *cxt, int *rc, char **subdir 20 21 dir = mnt_opt_get_value(opt); 22 23- if (dir && *dir == '"') 24- dir++; 25- 26 if (!dir || !*dir) { 27 DBG(HOOK, ul_debug("failed to parse X-mount.subdir '%s'", dir)); 28 *rc = -MNT_ERR_MOUNTOPT; 29-- 302.49.0 31