aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-06-14 10:59:18 -0400
committerJeff Layton <jlayton@samba.org>2012-06-14 10:59:18 -0400
commit0eb3daa4b17ee64b464594f1a5d413ecb364957c (patch)
tree597d0ce0fe55119e0652504e01d483aef9de340c /mount.cifs.c
parent74edf24d9780900f3ce15d2403c6e331b031d454 (diff)
downloadcifs-utils-0eb3daa4b17ee64b464594f1a5d413ecb364957c.tar.gz
cifs-utils-0eb3daa4b17ee64b464594f1a5d413ecb364957c.tar.xz
cifs-utils-0eb3daa4b17ee64b464594f1a5d413ecb364957c.zip
mount.cifs: set rc to 0 in libcap toggle_dac_capability
Thus spake Jochen: The mount.cifs program from the cifs-utils package 5.5 did not work on my Linux system. It just exited without an error message and did not mount anything. [...] I think, when this variable rc is now used in this function, it has also to be properly initialized there. Reported-by: Jochen Roderburg <roderburg@uni-koeln.de> 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 a1b0454..6f3f382 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -495,7 +495,7 @@ free_caps:
static int
toggle_dac_capability(int writable, int enable)
{
- int rc;
+ int rc = 0;
cap_t caps;
cap_value_t capability = writable ? CAP_DAC_OVERRIDE : CAP_DAC_READ_SEARCH;