Hi,

Any reason why cp's --attributes-only flag can't be used to copy
directory properties?

I've attached a patch (+ test) that enables this. It works for me and
passes the test suite, FWIW.

Vladimir Panteleev (1):
  copy: allow --attributes-only to work with directories

 src/copy.c                | 64 ++++++++++++++++++++++++++---------------------
 tests/cp/dir-attr-only.sh | 32 ++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 29 deletions(-)
 create mode 100755 tests/cp/dir-attr-only.sh

-- 
2.16.1


Reply via email to