From: Dan Anderson Date: Thu, 30 Apr 2026 02:53:10 +0000 (-0400) Subject: Improve error logging for fstat failure X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd7aceeaa31e3890d02e773fb1e68769abdf5809;p=thirdparty%2Fsystemd.git Improve error logging for fstat failure Small hygiene fix. r must be >= 0 as per the prior statement (otherwise we would have returned). This is really only going to be r == 0, which means return r; is return 0; I'm updating this to use log_debug_errno --- diff --git a/src/mountfsd/mountwork.c b/src/mountfsd/mountwork.c index 54a5203da2c..9f469d6061f 100644 --- a/src/mountfsd/mountwork.c +++ b/src/mountfsd/mountwork.c @@ -1362,7 +1362,7 @@ static int vl_method_make_directory( struct stat parent_stat; if (fstat(parent_fd, &parent_stat) < 0) - return r; + return log_debug_errno(errno, "Failed to fstat parent directory fd: %m"); r = stat_verify_directory(&parent_stat); if (r < 0)