chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d49b5a
)
udev: increase the size of RESULT buffer
author
Robert Milasan
<rmilasan@suse.com>
Thu, 24 Apr 2014 09:23:33 +0000
(11:23 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 24 Apr 2014 09:26:26 +0000
(11:26 +0200)
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.
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index 17f47f2613f363893ae1b315a17167479b5b1323..85f78bcdefcd19bf9effbdf2eb28926a766d6470 100644
(file)
--- a/
src/udev/udev-rules.c
+++ 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];
free(event->program_result);
event->program_result = NULL;