summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-07-26 09:01:44 +0200
committerJim Meyering <meyering@redhat.com>2011-07-26 09:01:44 +0200
commit5f35396395a61a9dd60367066bd4495091bd6f88 (patch)
tree4a42d73eee0183625044b5766558671124c35e29 /src
parente772bddde8295fe0fdaef05b3c4c5e967116c805 (diff)
downloadcoreutils-5f35396395a61a9dd60367066bd4495091bd6f88.tar.xz
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)
Diffstat (limited to 'src')
-rw-r--r--src/copy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c
index b2aeb6ece..aaf7e79aa 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -951,7 +951,9 @@ copy_reg (char const *src_name, char const *dst_name,
dest_errno = ENOTDIR;
}
else
- omitted_permissions = 0;
+ {
+ omitted_permissions = 0;
+ }
if (dest_desc < 0)
{
@@ -2212,7 +2214,9 @@ copy_internal (char const *src_name, char const *dst_name,
emit_verbose (src_name, dst_name, NULL);
}
else
- omitted_permissions = 0;
+ {
+ omitted_permissions = 0;
+ }
/* Decide whether to copy the contents of the directory. */
if (x->one_file_system && device != 0 && device != src_sb.st_dev)