From: Sam Morris Date: Thu, 10 Jan 2019 17:05:34 +0000 (+0000) Subject: docs: note that udev doesn't deal with binary attribute values (#11383) X-Git-Tag: v241-rc1~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e44f5710b1e7d843d224f5344e31383b685dbbf;p=thirdparty%2Fsystemd.git docs: note that udev doesn't deal with binary attribute values (#11383) Related to #5329. --- diff --git a/man/udev_device_has_tag.xml b/man/udev_device_has_tag.xml index f34ae9ed370..e27b7702157 100644 --- a/man/udev_device_has_tag.xml +++ b/man/udev_device_has_tag.xml @@ -109,12 +109,19 @@ udev_device_get_property_value() and udev_device_get_sysattr_value() return a pointer to a constant string of the requested value. On error, - NULL is returned. + NULL is returned. Attributes that may + contain NUL bytes should not be retrieved + with udev_device_get_sysattr_value(); + instead, read them directly from the files within the device's + syspath. On success, udev_device_set_sysattr_value() returns an integer greater than, or equal to, 0. - On failure, a negative error code is returned. + On failure, a negative error code is returned. Values that + contain NUL bytes should not be set with + this function; instead, write them directly to the files within + the device's syspath. On success, udev_device_has_tag() returns 1 or 0,