summaryrefslogtreecommitdiffstats
path: root/login-utils/chfn.1
diff options
context:
space:
mode:
authorKarel Zak2012-12-12 10:36:32 +0100
committerKarel Zak2012-12-12 10:36:32 +0100
commit97da60c64e231bdfba163e23cbbe9e52c1550d06 (patch)
tree29ae041f7b253e097723dc954773eafebb56c542 /login-utils/chfn.1
parenttests: unset *_DEBUG variables (diff)
downloadkernel-qcow2-util-linux-97da60c64e231bdfba163e23cbbe9e52c1550d06.tar.gz
kernel-qcow2-util-linux-97da60c64e231bdfba163e23cbbe9e52c1550d06.tar.xz
kernel-qcow2-util-linux-97da60c64e231bdfba163e23cbbe9e52c1550d06.zip
chfn: clean up exit status
The old version in some cases (but not always) returns -1 (255) on error. It seems better to cleanup the code and don't return internal return codes by exit(). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/chfn.1')
-rw-r--r--login-utils/chfn.12
1 files changed, 2 insertions, 0 deletions
diff --git a/login-utils/chfn.1 b/login-utils/chfn.1
index 532940888..5f87ad713 100644
--- a/login-utils/chfn.1
+++ b/login-utils/chfn.1
@@ -72,6 +72,8 @@ Print a usage message and exit.
.TP
.B "-v, \-\-version"
Print version information and exit.
+.SH "EXIT STATUS"
+Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
.SH "SEE ALSO"
.BR finger (1),
.BR passwd (5)