mount.cifs: make return codes match the return codes for /bin/mount (try #3)
commit73bcaf13ff0c83d9f88a70ae357655ea2bbce3db
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Oct 2008 14:44:37 +0000 (9 10:44 -0400)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Dec 2008 10:22:16 +0000 (9 11:22 +0100)
tree5f810c865e67e578598705c1773b255082aeb856
parent1bd6efe1ad0dba7014905612d33be024c07a264c
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 2374799c8114ae3ed422d1cbe4ca12c4fd075274)
(cherry picked from commit 98bcd52a568c274707cc6ccb9071d07a8bfca1ca)
source/client/mount.cifs.c