mount.cifs: make return codes match the return codes for /bin/mount (try #3)
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 13:58:40 +0000 (09:58 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 13:58:40 +0000 (09:58 -0400)
commit2c9df6401c4b5cbd49c67c86c58f0515426846bb
tree0d82d7bc6aa1b0598dde3341e507c20007a93f5d
parentdd9002cf498e177b769eabd2fed40213069cd239
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>
source3/client/mount.cifs.c