git: sbin/hammer - Remove trailing '/' from paths.

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Tue Mar 4 15:41:40 PST 2014


commit 8b64066296d5525d9bd923cd841c5084d8e668b5
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Wed Mar 5 00:24:38 2014 +0100

    sbin/hammer - Remove trailing '/' from paths.
    
      When operating PFSes through symbolic links, it was not
      possible to specify the trailing backslash since that
      translated to the PFS root dir instead of the symbolic link
      to the PFS itself. This caused problems when upgrading or
      downgrading PFSes (and probably in other cases too).
      The error was "Directory not empty".
    
      This commit should solve those cases, but keep in mind
      there are other cases where it is actually not possible
      to complete certain operations (like while destroying
      PFSes).
    
    Reported-by: Siju George, others

Summary of changes:
 sbin/hammer/cmd_mirror.c   |  4 ++--
 sbin/hammer/cmd_pseudofs.c | 13 ++++++++++++-
 sbin/hammer/hammer.h       |  2 +-
 3 files changed, 15 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b64066296d5525d9bd923cd841c5084d8e668b5


-- 
DragonFly BSD source repository



More information about the Commits mailing list