udev: do not append newline when write attributes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 Nov 2019 05:42:55 +0000 (14:42 +0900)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
commit786897d1db60d95c4f095f952912c809a481cb02
tree2d44381bcd84db88194c4da456b0f362c121f829
parent9b4f2cc8a270aece206eb2df69cb963be570ec48
udev: do not append newline when write attributes

Before 25de7aa7b90c23d33ea50ada1e50c5834a414237, the content is written
by `fprintf()` without new line. So WRITE_STRING_FILE_AVOID_NEWLINE flag
is necessary.

Fixes #13985.

(cherry picked from commit a566ed2c82d81cc6416fe0da0a14f6d5fe5d83b4)

Gbp-Pq: Name udev-do-not-append-newline-when-write-attributes.patch
src/udev/udev-rules.c