mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
udev: increase the size of RESULT buffer
Under some conditions, in udev_rules_apply_to_event the fact that result is 1024 bytes, creates problems if the output of the running command/app is bigger then 1024 bytes. (cherry picked from commit209b031e4f) (cherry picked from commitaa8c95a158)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ecdee21de8
commit
38ca51efdd
@@ -2058,7 +2058,7 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
|
||||
case TK_M_PROGRAM: {
|
||||
char program[UTIL_PATH_SIZE];
|
||||
char **envp;
|
||||
char result[UTIL_PATH_SIZE];
|
||||
char result[UTIL_LINE_SIZE];
|
||||
|
||||
free(event->program_result);
|
||||
event->program_result = NULL;
|
||||
|
||||
Reference in New Issue
Block a user