cp: -p --parents: minor cleanup of previous patch
commit300af7869161a3618e28cbae3daefc25c8267efe
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 May 2023 18:03:25 +0000 (5 11:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 May 2023 18:05:03 +0000 (5 11:05 -0700)
tree3699f3a22034584ee7ec839b0a0be29a4aa130eb
parentc6b1fe43474b48a6bf5793e11cc1d0d6e895fdf4
cp: -p --parents: minor cleanup of previous patch

This doesn’t change behavior; it just clarifies the code a bit.
* src/cp.c (re_protect): New arg DST_SRC_NAME, for clarity, and so
that we need to skip '/'s only once.  Caller changed.
Rename a couple of local variables to try to make things clearer.
src/cp.c