mount.cifs: make return codes match the return codes for /bin/mount (try #3)
commita6e250ad2f50ec1c083a86d0161c1c00c1c3129e
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 14:46:40 +0000 (9 10:46 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 14:46:40 +0000 (9 10:46 -0400)
tree05acc12c1913ee4ceab54696494a0268f39e8937
parent1c9f269280983119c7c906bbc2bf1ccaaba8c740
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>
source/client/mount.cifs.c