summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-06 12:33:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-06 12:33:14 +0200
commit0a3bb96e2c77af78e31e497c791cb110e740ad59 (patch)
tree35025d662054f71b96d83d791060fa9eb9594f86 /src/basic
parent5b7003708352c59b44311cd19c6746f9047ad140 (diff)
util: some comment fixes in fdname_is_valid()
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index 630c7ea9ff..2855993afe 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -6849,12 +6849,14 @@ int version(void) {
bool fdname_is_valid(const char *s) {
const char *p;
- /* Validates a name for $LISTEN_NAMES. We basically allow
+ /* Validates a name for $LISTEN_FDNAMES. We basically allow
* everything ASCII that's not a control character. Also, as
* special exception the ":" character is not allowed, as we
- * use that as field separator in $LISTEN_NAMES.
+ * use that as field separator in $LISTEN_FDNAMES.
*
- * Note that the empty string is explicitly allowed here.*/
+ * Note that the empty string is explicitly allowed
+ * here. However, we limit the length of the names to 255
+ * characters. */
if (!s)
return false;