Bernhard Rosenkraenzer <[EMAIL PROTECTED]> writes:
| when invoked with --verbose -p, mkdir's output looks weird because of a
| missing \n. (Red Hat bug database entry #7770)
| (Try mkdir --verbose -p /tmp/a/b/c/d/e/f/g/h/i/j/k)

Thanks for the report and patch.
Here's the fix I've just applied:

        * lib/makepath.c (make_path): Consistently use error to output
        the verbose, `created directory' messages.

Index: lib/makepath.c
===================================================================
RCS file: /fetish/fileutils/lib/makepath.c,v
retrieving revision 1.40
diff -u -p -r1.40 makepath.c
--- lib/makepath.c      1999/11/11 11:00:50     1.40
+++ lib/makepath.c      1999/12/13 07:22:09
@@ -308,7 +308,7 @@ make_path (const char *argpath,
          if (newly_created_dir)
            {
              if (verbose_fmt_string)
-               fprintf (stderr, verbose_fmt_string, dirpath);
+               error (0, 0, verbose_fmt_string, dirpath);
 
              if ((owner != (uid_t) -1 || group != (gid_t) -1)
                  && chown (basename_dir, owner, group)

Reply via email to