[systemd-devel] udevd-work: ressize 1024 too short

Kay Sievers kay at vrfy.org
Thu Apr 24 02:27:20 PDT 2014


On Tue, Mar 25, 2014 at 1:36 PM, Robert Milasan <rmilasan at suse.com> wrote:
> Hello, seems that under some conditions in udev_rules_apply_to_event
> (@TK_M_PROGRAM) the fact that result is 1024 bytes creates problems if
> the output of the running command/app is bigger then 1024 bytes.

> +++ b/src/udev/udev-rules.c
> @@ -2027,7 +2027,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];

Applied.

Thanks,
Kay


More information about the systemd-devel mailing list