summaryrefslogtreecommitdiff
path: root/src/rmdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmdir.c')
-rw-r--r--src/rmdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmdir.c b/src/rmdir.c
index 6c1341ec2..7c497b4b9 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -43,7 +43,7 @@ static int empty_paths;
/* If non-zero, display usage information and exit. */
static int show_help;
-/* If non-zero, print the version on standard error. */
+/* If non-zero, print the version on standard output and exit. */
static int show_version;
static struct option const longopts[] =
@@ -82,7 +82,7 @@ main (argc, argv)
if (show_version)
{
- fprintf (stderr, "%s\n", version_string);
+ printf ("%s\n", version_string);
exit (0);
}