git: usr.sbin/makefs/hammer2: Fix link count handling in "-o R" option
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Jul 2 21:05:21 PDT 2023
commit 2db6f39c39070c9f876ccbe7620fbffc7afcf58c
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Mon Jul 3 00:23:04 2023 -0700
usr.sbin/makefs/hammer2: Fix link count handling in "-o R" option
Sanity check in hammer2_linkq_cleanup() is valid only when "-o R=/".
If a non-root directory was specified, not all links may exist under
that directory, and as a result unused linkq element remains.
While here change calloc to ecalloc and fix goto label name.
Summary of changes:
usr.sbin/makefs/hammer2.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2db6f39c39070c9f876ccbe7620fbffc7afcf58c
--
DragonFly BSD source repository
More information about the Commits
mailing list