Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Oct 2006 20:44:31 +0000 (20:44 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Oct 2006 20:44:31 +0000 (20:44 +0000)
commit4767fc607e5fd38b2a9c8db2d876125aaa10e578
treeb4468e643bfee985d4a797ce142567f17dbfe7a5
parent0fc6edb71490b03c79dd03c903a4b72ce2a23d81
Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
wrong file name in some cases.
* src/install.c (struct install_options): New type.
(install_file_in_file_parents, main):
Use it instead of struct cp_options.
(process_dir): Remember the full name.
(announce_mkdir, make_ancestor): Use the full name in announcements.
* src/mkdir.c (struct mkdir_options): Add full_name member.
(make_ancestor): Use the full name in announcements.
(process_dir): Remember the full name.
* tests/mkdir/Makefile.am (TESTS): Add p-v.
* tests/mkdir/p-v: New file, to test this bug.
ChangeLog
src/install.c
src/mkdir.c
tests/mkdir/Makefile.am
tests/mkdir/p-v [new file with mode: 0755]