git: DragonFly_RELEASE_3_6 sbin/hammer - Remove trailing '/' from paths.
Antonio Huete Jimenez
tuxillo at crater.dragonflybsd.org
Sat Mar 22 15:28:03 PDT 2014
commit 0d855acbae6fd598547fdb115680735d5ad58295
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/0d855acbae6fd598547fdb115680735d5ad58295
--
DragonFly BSD source repository
More information about the Commits
mailing list