]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Convert "`%s'" in format strings to "%s", and wrap each
authorJim Meyering <jim@meyering.net>
Sun, 30 Jul 2000 16:34:48 +0000 (16:34 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Jul 2000 16:34:48 +0000 (16:34 +0000)
corresponding argument in a `quote (...)' call.

src/rmdir.c

index 6310850667bfb17f6df7a4fdebb6c84e09ef6f20..260205c3c2601b5159080c4dc38a5fa4e6ed359e 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "system.h"
 #include "error.h"
+#include "quote.h"
 
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "rmdir"
@@ -126,7 +127,7 @@ remove_parents (char *path)
            }
          else
            {
-             error (0, errno, "%s", path);
+             error (0, errno, "%s", quote (path));
            }
          break;
        }
@@ -225,7 +226,7 @@ main (int argc, char **argv)
              && errno_rmdir_non_empty (errno))
            continue;
 
-         error (0, errno, "%s", dir);
+         error (0, errno, "%s", quote (dir));
          errors = 1;
        }
       else if (empty_paths)