network: update comment and log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Apr 2021 00:03:33 +0000 (09:03 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 May 2021 18:26:58 +0000 (20:26 +0200)
commit1f6aaced6f7f73938965b3202fb652ba46acf9e1
treeb7c5e3e54773a38d27e0f262373dd660c9717bcd
parent75a1ee74ece3708da001ad6c25ac5e23a0d97cb3
network: update comment and log message

After 4b30f2e135ee84041bb597edca7225858f4ef4fb, reading stable_secret
sysctl property fails with -ENOMEM, instead of -EIO.
This is due to read_full_virtual_file() uses read() as the backend while
read_one_line_file() uses fgetc(). And each functions return different
error on fails.

Anyway, the failure is harmless here. So, the log message and comment is
updated.

Closes one of the issues in #19410.

(cherry picked from commit 0e27527170aa0179f2a4b3b55b78ddc049f815b9)
(cherry picked from commit 2417e9b59aa654e4b3def3399576ebbc2cdd7c95)
(cherry picked from commit 0d80d62a87862f46f62c6c17ad6d682ad6228049)
src/network/networkd-link.c