maint: use consistent style in C and test scripts
commit5f35396395a61a9dd60367066bd4495091bd6f88
authorJim Meyering <meyering@redhat.com>
Tue, 26 Jul 2011 07:01:44 +0000 (26 09:01 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 26 Jul 2011 07:01:44 +0000 (26 09:01 +0200)
tree4a42d73eee0183625044b5766558671124c35e29
parente772bddde8295fe0fdaef05b3c4c5e967116c805
maint: use consistent style in C and test scripts

* src/copy.c (copy_internal): Adjust formatting style to conform with
guidelines in HACKING: put braces around two one-line "else" blocks.
* tests/cp/existing-perm-dir: Use $(...), not `...`, and
stat rather than ls+cut to get the mode string.
mode=$(stat --p=%A dst/dir)
src/copy.c
tests/cp/existing-perm-dir