mount.cifs.c toggle_dac_capability() stores return code
Subsystems (2)
Hello again,
the build process of the cifs-utils for Mandriva 2011 made me notice of the unused variable rc in toggle_dac_capability() of mount.cifs.c.
A bit up in the code we store the return value and do not make use of it while calling return.
The attached patch intends to fix this.
The failing build result is still visible at
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cifs-utils&project=network%3Asamba%3ASTABLE&repository=Mandriva_2011
Cheers,
Lars
Signature · 3 lines
Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Author: Lars Mueller <lmuelle-IBi9RG/[email protected]>
Subject: cifs-utils don't make use of stored return code
Bugzilla: na
Upstream-Reported: http://permalink.gmane.org/gmane.linux.kernel.cifs/5935
Upstream-Acknowledged: Yes
mount.cifs.c +1 -1
@@ -577,7 +577,7 @@ toggle_dac_capability(int writable, int } free_caps:cap_free (caps); -return 0 ; +return rc; }#else /* HAVE_LIBCAP */ static int
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · On Thu, 19 Apr 2012 20:56:13 +0200 Lars Müller…
Hello again,
the build process of the cifs-utils for Mandriva 2011 made me notice of the unused variable rc in
toggle_dac_capability()ofmount.cifs.c.A bit up in the code we store the return value and do not make use of it while calling return.
Quoted 8 lines
The attached patch intends to fix this.
The failing build result is still visible at
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cifs-utils&project=network%3Asamba%3ASTABLE&repository=Mandriva_2011Cheers,
Lars
ACK. Good catch.
Signature · 1 line
Jeff Layton <[email protected]>