aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-09-12 07:49:44 -0400
committerJeff Layton <jlayton@samba.org>2012-09-12 07:49:44 -0400
commit82f93c44343f281ce61f547ff8f9e5f79945cb20 (patch)
treeb88a478900e8103bad396d28f9e70075bac2c365 /mount.cifs.c
parenta0bf123541ec6fd53948f41f17c9dba5d6a43648 (diff)
downloadcifs-utils-82f93c44343f281ce61f547ff8f9e5f79945cb20.tar.gz
cifs-utils-82f93c44343f281ce61f547ff8f9e5f79945cb20.tar.xz
cifs-utils-82f93c44343f281ce61f547ff8f9e5f79945cb20.zip
mount.cifs: running out of addresses is not a system error
This patch fixes a minor regression. It used to be that when the mount helper would run out of addresses that it would return EX_FAIL to userspace. It now returns EX_SYSERR which is incorrect. Reinstate the correct error code. Reported-by: Ales Zelinka <azelinka@redhat.com> Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 3fd472a..7ee859b 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -2119,7 +2119,7 @@ int main(int argc, char **argv)
mount_retry:
if (!currentaddress) {
fprintf(stderr, "Unable to find suitable address.\n");
- rc = EX_SYSERR;
+ rc = EX_FAIL;
goto mount_exit;
}
strlcpy(options, "ip=", options_size);