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>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commitbe70b294585732a59ce36dcfec4d9e6494c1845d
tree4ab6f47c1b3804578d757e15be695f78d41ba43c
parentb2ba8f2e83171a8ef1faff38c0e74e86bda64698
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