mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
recurse-dir: fix wrong assertion and error code in log
Fixes a bug in b5a07e524e42d2594174ca1a5b72aa4fdb9af94c (v250). (cherry picked from commit 91421f8379b66316f937d56c60c2e782b7a79eca)
This commit is contained in:
parent
4cdaff292c
commit
349012c493
@ -321,7 +321,7 @@ int recurse_dir(
|
||||
if (r < 0) {
|
||||
log_debug_errno(r, "Failed to stat directory entry '%s': %m", p);
|
||||
|
||||
assert(errno <= RECURSE_DIR_SKIP_STAT_INODE_ERROR_MAX - RECURSE_DIR_SKIP_STAT_INODE_ERROR_BASE);
|
||||
assert(-r <= RECURSE_DIR_SKIP_STAT_INODE_ERROR_MAX - RECURSE_DIR_SKIP_STAT_INODE_ERROR_BASE);
|
||||
|
||||
r = func(RECURSE_DIR_SKIP_STAT_INODE_ERROR_BASE + -r,
|
||||
p,
|
||||
@ -351,7 +351,7 @@ int recurse_dir(
|
||||
* guarantee that RECURSE_DIR_ENTRY is strictly issued for
|
||||
* non-directory dirents. */
|
||||
|
||||
log_debug_errno(r, "Non-directory entry '%s' suddenly became a directory: %m", p);
|
||||
log_debug("Non-directory entry '%s' suddenly became a directory.", p);
|
||||
|
||||
r = func(RECURSE_DIR_SKIP_STAT_INODE_ERROR_BASE + EISDIR,
|
||||
p,
|
||||
|
Loading…
x
Reference in New Issue
Block a user