Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
cifs-utils
set-rc-libcap-toggle_dac_capability.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File set-rc-libcap-toggle_dac_capability.diff of Package cifs-utils
From: Jeff Layton <jlayton@samba.org> To: linux-cifs@vger.kernel.org Cc: roderburg@uni-koeln.de Date: Tue, 12 Jun 2012 06:12:30 -0400 Subject: [PATCH] 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> --- mount.cifs.c | 2 +- 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; -- 1.7.7.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor