summaryrefslogtreecommitdiff
path: root/src/rmdir.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-30 16:34:48 +0000
committerJim Meyering <jim@meyering.net>2000-07-30 16:34:48 +0000
commitc2c1f42b0bc966fc974f4516b6b07cbd8a5a1261 (patch)
treedc1e3a6ff2e00184cf2a6f26b63ab5a7180e0ec7 /src/rmdir.c
parent381ba4a26aeec0ad40f957ebeb2429e9df535d4c (diff)
downloadcoreutils-c2c1f42b0bc966fc974f4516b6b07cbd8a5a1261.tar.xz
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Diffstat (limited to 'src/rmdir.c')
-rw-r--r--src/rmdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rmdir.c b/src/rmdir.c
index 631085066..260205c3c 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -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)