From: Zbigniew Jędrzejewski-Szmek Date: Wed, 23 Jun 2021 09:52:56 +0000 (+0200) Subject: basic/unit-name: adjust comments X-Git-Tag: archive/raspbian/247.3-7+rpi1^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3cc00a6fd5f453f2c184827a7524c6c8d4ed0325;p=systemd.git basic/unit-name: adjust comments We already checked for "too long" right above… (cherry picked from commit 4e2544c30bfb95e7cb4d1551ba066b1a56520ad6) Gbp-Pq: Name basic-unit-name-adjust-comments.patch --- diff --git a/src/basic/unit-name.c b/src/basic/unit-name.c index 9b6cacde..e2868314 100644 --- a/src/basic/unit-name.c +++ b/src/basic/unit-name.c @@ -528,7 +528,7 @@ int unit_name_from_path(const char *path, const char *suffix, char **ret) { if (strlen(s) >= UNIT_NAME_MAX) /* Return a slightly more descriptive error for this specific condition */ return -ENAMETOOLONG; - /* Refuse this if this got too long or for some other reason didn't result in a valid name */ + /* Refuse if this for some other reason didn't result in a valid name */ if (!unit_name_is_valid(s, UNIT_NAME_PLAIN)) return -EINVAL; @@ -562,7 +562,7 @@ int unit_name_from_path_instance(const char *prefix, const char *path, const cha if (strlen(s) >= UNIT_NAME_MAX) /* Return a slightly more descriptive error for this specific condition */ return -ENAMETOOLONG; - /* Refuse this if this got too long or for some other reason didn't result in a valid name */ + /* Refuse if this for some other reason didn't result in a valid name */ if (!unit_name_is_valid(s, UNIT_NAME_INSTANCE)) return -EINVAL;