cp,ln,mv: improve dir vs nondir diagnostics
commitff42adb55e99226f55a7b141316ee2a7b84a4857
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Mar 2024 19:02:41 +0000 (22 12:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Mar 2024 01:39:27 +0000 (22 18:39 -0700)
tree5aac9435379c64a5ae16a6594cbed49a5da047fe
parent193449b17334649a2abcbca589544d858fca92a1
cp,ln,mv: improve dir vs nondir diagnostics

* src/copy.c (copy_internal): Simplify logic for copying
from directory to non-directory or vice versa, and always
diagnose with both source and destination file names.
src/copy.c