summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-12 18:45:13 -0800
committerJeremy Allison <jra@samba.org>2007-12-12 18:45:13 -0800
commitf6b38a70aae2640fc45fc8b0bd30564197d1603d (patch)
tree358eeea65daea522fd03301a43cee60f783785eb /source3/client
parentaaf05ef410425a9d70d679fb2e0aa013f5c117a0 (diff)
downloadsamba-f6b38a70aae2640fc45fc8b0bd30564197d1603d.tar.gz
samba-f6b38a70aae2640fc45fc8b0bd30564197d1603d.tar.bz2
samba-f6b38a70aae2640fc45fc8b0bd30564197d1603d.zip
Fix bug #4784. Patch from Steve Langasek <vorlon@debian.org>.
Jeremy. (This used to be commit 4f503ea8912eb787209c8df364bfdb161dbb212c)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/umount.cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/umount.cifs.c b/source3/client/umount.cifs.c
index ab94a20c60..3e2415ad00 100644
--- a/source3/client/umount.cifs.c
+++ b/source3/client/umount.cifs.c
@@ -130,7 +130,7 @@ static int umount_check_perm(char * dir)
printf("user unmounting via %s is an optional feature of",thisprogram);
printf(" the cifs filesystem driver (cifs.ko)");
printf("\n\tand requires cifs.ko version 1.32 or later\n");
- } else if (rc > 0)
+ } else if (rc != 0)
printf("user unmount of %s failed with %d %s\n",dir,errno,strerror(errno));
close(fileid);