Return 0 if successful, 1 if an error occurs. */
static int
-copy (char *src_path, char *dst_path, int new_dst, dev_t device, struct dir_list *ancestors)
+copy (char *src_path, char *dst_path, int new_dst, dev_t device,
+ struct dir_list *ancestors)
{
struct stat src_sb;
struct stat dst_sb;
permissions when done, otherwise 1. */
static int
-make_path_private (char *const_dirpath, int src_offset, int mode, char *verbose_fmt_string, struct dir_attr **attr_list, int *new_dst)
+make_path_private (char *const_dirpath, int src_offset, int mode,
+ char *verbose_fmt_string, struct dir_attr **attr_list,
+ int *new_dst)
{
struct stat stats;
char *dirpath; /* A copy of CONST_DIRPATH we can change. */
Return 0 if successful, -1 if an error occurs. */
static int
-copy_dir (char *src_path_in, char *dst_path_in, int new_dst, struct stat *src_sb, struct dir_list *ancestors)
+copy_dir (char *src_path_in, char *dst_path_in, int new_dst,
+ struct stat *src_sb, struct dir_list *ancestors)
{
char *name_space;
char *namep;
free_cwd (&cwd);
}
else if (chdir ("..") < 0)
- error (1, errno, "cannot change to `..' from directory %s", path->text);
+ error (1, errno,
+ "cannot change to `..' from directory %s", path->text);
str_trunc (path, pathlen - 1); /* Remove the "/" we added. */
if (!opt_summarize_only || top)
= hard_dir_link = 0;
errors = 0;
- while ((c = getopt_long (argc, argv, "bdfinsvFS:V:", long_options, (int *) 0))
+ while ((c = getopt_long (argc, argv,
+ "bdfinsvFS:V:", long_options, (int *) 0))
!= EOF)
{
switch (c)
stdin_tty = isatty (STDIN_FILENO);
if (argc > optind + 2 && !isdir (argv[argc - 1]))
- error (1, 0, "when moving multiple files, last argument must be a directory");
+ error (1, 0,
+ "when moving multiple files, last argument must be a directory");
/* Move each arg but the last onto the last. */
for (; optind < argc - 1; ++optind)