mount.cifs: make return codes match the return codes for /bin/mount (try #3)
commit31670d786f3a67fc7803112f5206ef3414c10739
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 14:46:40 +0000 (9 10:46 -0400)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Oct 2008 16:06:34 +0000 (15 18:06 +0200)
tree7152a12e87e4ab93f219658e0982a489c668589f
parent3d8dcd1d5bcacf5512f39a19535c06a01aae798e
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 a6e250ad2f50ec1c083a86d0161c1c00c1c3129e)
source/client/mount.cifs.c