sbin/hammer - Remove trailing '/' from paths.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 4 Mar 2014 23:24:38 +0000 (00:24 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 4 Mar 2014 23:40:54 +0000 (00:40 +0100)
commit8b64066296d5525d9bd923cd841c5084d8e668b5
tree89bf0289cfe840336bda9cb9ae4635b8fc80b25d
parentc871fb2d9518babc3a43357e54094e4c68ccc74a
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
sbin/hammer/cmd_mirror.c
sbin/hammer/cmd_pseudofs.c
sbin/hammer/hammer.h