* 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)
dest_errno = ENOTDIR;
}
else
- omitted_permissions = 0;
+ {
+ omitted_permissions = 0;
+ }
if (dest_desc < 0)
{
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)
cp -r src/. dst/ || fail=1
-mode=`ls -ld dst/dir | cut -b-10`
+mode=$(stat --p=%A dst/dir)
test "$mode" = drwx------ || fail=1
Exit $fail