]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: check ferror() first
authorMike Yuan <me@yhndnzj.com>
Thu, 14 Dec 2023 15:41:06 +0000 (23:41 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 15 Dec 2023 13:21:17 +0000 (21:21 +0800)
commit121b7054267d34e3f3ab1cbbbb1cc24ebc2d0ea4
tree5b036a32cfc39bfba765902d783e391867d22667
parent674becc987004bff45bf286559224802b2b74905
cgroup-util: check ferror() first

Also, there's no need to set use errno_or_else(), since fscanf() is
documented to set errno on error.
src/basic/cgroup-util.c