Skip to content

Commit daceb81

Browse files
committed
udev: also not unescape command result on debug log
1 parent 86c783d commit daceb81

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/udev/udev-event.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,11 @@ static int on_spawn_io(sd_event_source *s, int fd, uint32_t revents, void *userd
573573
_cleanup_strv_free_ char **v = NULL;
574574
char **q;
575575

576-
v = strv_split_newlines(p);
577-
if (!v)
578-
log_oom_debug();
576+
r = strv_split_newlines_full(&v, p, EXTRACT_RETAIN_ESCAPE);
577+
if (r < 0)
578+
log_device_debug(spawn->device,
579+
"Failed to split output from '%s'(%s), ignoring: %m",
580+
spawn->cmd, fd == spawn->fd_stdout ? "out" : "err");
579581

580582
STRV_FOREACH(q, v)
581583
log_device_debug(spawn->device, "'%s'(%s) '%s'", spawn->cmd,

0 commit comments

Comments
 (0)