summaryrefslogtreecommitdiff
path: root/src/chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chmod.c')
-rw-r--r--src/chmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chmod.c b/src/chmod.c
index 19c8cd8cd..eb3316c0e 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -61,7 +61,7 @@ static int changes_only;
/* 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 long_options[] =
@@ -144,7 +144,7 @@ main (argc, argv)
if (show_version)
{
- fprintf (stderr, "%s\n", version_string);
+ printf ("%s\n", version_string);
exit (0);
}