git: hammer2 - Fix rename-over-non-empty-directory bug

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 1 12:03:00 PST 2021


commit 38f19b3ef863d5fed3d3d6616675bc9efb18d40b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 1 12:02:01 2021 -0800

    hammer2 - Fix rename-over-non-empty-directory bug
    
    * hammer2 was allowing renames to replace non-empty directories.
      Fix by disallowing the case.
    
    Reported-by: zrj

Summary of changes:
 sys/vfs/hammer2/hammer2.h       |  2 ++
 sys/vfs/hammer2/hammer2_admin.c | 17 ++++++++++++++++-
 sys/vfs/hammer2/hammer2_vnops.c |  2 ++
 sys/vfs/hammer2/hammer2_xops.c  | 27 +++++++++++++++++++++++++++
 4 files changed, 47 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38f19b3ef863d5fed3d3d6616675bc9efb18d40b


-- 
DragonFly BSD source repository



More information about the Commits mailing list