]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: bring back the word `may` in error text
authorOlle Lundberg <olle.lundberg@gmail.com>
Mon, 17 May 2021 14:20:23 +0000 (16:20 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 17 May 2021 21:21:00 +0000 (22:21 +0100)
In the change set 6c045a999800c62368470938307951bb669f5afc the error
text for the old flag `--private-users-chown` was repurposed for the
new flag `--private-users-ownership=own` and while doing so the word
`may` was dropped leading to a grammatically incorrect error text.

src/nspawn/nspawn.c

index 4ef95bfa5a95c816991d99ed6fb533dc74ccd857..a8441bf8e0031326fe955692077f1c6420eef349 100644 (file)
@@ -453,7 +453,7 @@ static int custom_mount_check_all(void) {
                 if (path_equal(m->destination, "/") && arg_userns_mode != USER_NAMESPACE_NO) {
                         if (arg_userns_ownership != USER_NAMESPACE_OWNERSHIP_OFF)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
-                                                       "--private-users-ownership=own not be combined with custom root mounts.");
+                                                       "--private-users-ownership=own may not be combined with custom root mounts.");
                         if (arg_uid_shift == UID_INVALID)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                                        "--private-users with automatic UID shift may not be combined with custom root mounts.");