From: Luca Boccassi Date: Tue, 11 Oct 2022 17:28:10 +0000 (+0100) Subject: mount-util: do not pass 'x-*' options to mount syscall X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3662951d7c410375358871cb80900b1eb38fcb2;p=thirdparty%2Fsystemd.git mount-util: do not pass 'x-*' options to mount syscall They will not be recognized. libmount filters them manually. --- diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index c504ce8feef..6742b7c755b 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -765,7 +765,9 @@ int mount_option_mangle( } /* If 'word' is not a mount flag, then store it in '*ret_remaining_options'. */ - if (!ent->name && !strextend_with_separator(&ret, ",", word)) + if (!ent->name && + !startswith_no_case(word, "x-") && + !strextend_with_separator(&ret, ",", word)) return -ENOMEM; }