From cd7aceeaa31e3890d02e773fb1e68769abdf5809 Mon Sep 17 00:00:00 2001 From: Dan Anderson Date: Wed, 29 Apr 2026 22:53:10 -0400 Subject: [PATCH] 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 --- src/mountfsd/mountwork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3