mount.cifs: make return codes match the return codes for /bin/mount (try #3)
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 14:51:33 +0000 (10:51 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:55 +0000 (10:11 +0100)
commit125580546418ce7f38d9c9afdcc734cd2183185e
treed22910a3154eb33a3fe5bb3f6f4340f62abc2988
parent09f332882baf4bde40c083e7b15739a670775d6e
mount.cifs: make return codes match the return codes for /bin/mount (try #3)

The manpage for /bin/mount specifies that the return code should be a
positive integer (actually, it's a bitfield). Clean up the return
codes from mount.cifs to make them match the expected return values
from /bin/mount. This necessary for proper integration with autofs.

This is the third attempt at this patch. The changes here are minor,
just changing some return's from main() into exit() calls for
consistency's sake.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 4558c09c921793dd358de3ad4b9b4dd091e43662)
source/client/mount.cifs.c