diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-06-24 13:49:15 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-06-24 20:09:24 +0900 |
commit | c3613ee51e3aff61dfea22501c48d19c20cb7b71 (patch) | |
tree | 1d05558b12635822402ea18823b90435c549f213 /src/udev/udev-rules.c | |
parent | f3bd663faf2235ca31b99679a6a35f0496dfb3b8 (diff) | |
download | systemd-c3613ee51e3aff61dfea22501c48d19c20cb7b71.tar.gz |
udev: allow to execute longer command line
Fixes #23607.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index fa225476b6..f95b751b75 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1717,7 +1717,7 @@ static int udev_rule_apply_token_to_event( return token->op == (match ? OP_MATCH : OP_NOMATCH); } case TK_M_PROGRAM: { - char buf[UDEV_PATH_SIZE], result[UDEV_LINE_SIZE]; + char buf[UDEV_LINE_SIZE], result[UDEV_LINE_SIZE]; bool truncated; size_t count; @@ -1805,7 +1805,7 @@ static int udev_rule_apply_token_to_event( } case TK_M_IMPORT_PROGRAM: { _cleanup_strv_free_ char **lines = NULL; - char buf[UDEV_PATH_SIZE], result[UDEV_LINE_SIZE]; + char buf[UDEV_LINE_SIZE], result[UDEV_LINE_SIZE]; bool truncated; (void) udev_event_apply_format(event, token->value, buf, sizeof(buf), false, &truncated); @@ -1873,7 +1873,7 @@ static int udev_rule_apply_token_to_event( UdevBuiltinCommand cmd = PTR_TO_UDEV_BUILTIN_CMD(token->data); assert(cmd >= 0 && cmd < _UDEV_BUILTIN_MAX); unsigned mask = 1U << (int) cmd; - char buf[UDEV_PATH_SIZE]; + char buf[UDEV_LINE_SIZE]; bool truncated; if (udev_builtin_run_once(cmd)) { @@ -2369,7 +2369,7 @@ static int udev_rule_apply_token_to_event( case TK_A_RUN_BUILTIN: case TK_A_RUN_PROGRAM: { _cleanup_free_ char *cmd = NULL; - char buf[UDEV_PATH_SIZE]; + char buf[UDEV_LINE_SIZE]; bool truncated; if (event->run_final) |