]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/options: add OPTION_COMMON_RESOLVE_NAMES
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 29 Apr 2026 10:02:25 +0000 (12:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 29 Apr 2026 12:00:41 +0000 (14:00 +0200)
src/shared/options.h

index f50fbdb3cb3e5fe09b308f62cd9c672ad4b0ab07..a171f5f6a43f74704e890cf25bcd2e3d5ff483e0 100644 (file)
@@ -150,10 +150,13 @@ typedef struct Option {
                     "(file, provider:PROVIDER)")
 
 /* A form used in udev code for compatibility. -V is accepted but not documented. */
-#define OPTION_COMMON_VERSION_WITH_HIDDEN_V                                      \
-        OPTION_COMMON_VERSION: {}                                                \
+#define OPTION_COMMON_VERSION_WITH_HIDDEN_V                             \
+        OPTION_COMMON_VERSION: {}                                       \
         OPTION_SHORT('V', NULL, /* help= */ NULL)
 
+#define OPTION_COMMON_RESOLVE_NAMES                                     \
+        OPTION('N', "resolve-names", "MODE",                            \
+               "When to resolve users and groups (early, late, or never)")
 
 /* This is magically mapped to the beginning and end of the section */
 extern const Option __start_SYSTEMD_OPTIONS[];