From: | "Lars Wendler (polynomial-c)" <polynomial-c@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-fs/cifs-utils/files: cifs-utils-5.5-initialize_rc_var_properly.patch |
Date: | Wed, 04 Jul 2012 06:26:56 |
Message-Id: | 20120704062647.2020C2004C@flycatcher.gentoo.org |
1 | polynomial-c 12/07/04 06:26:47 |
2 | |
3 | Added: cifs-utils-5.5-initialize_rc_var_properly.patch |
4 | Log: |
5 | Added patch to 5.5 version so it mounts shares again (bug #424487). |
6 | |
7 | (Portage version: 2.2.0_alpha115/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-fs/cifs-utils/files/cifs-utils-5.5-initialize_rc_var_properly.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/files/cifs-utils-5.5-initialize_rc_var_properly.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/files/cifs-utils-5.5-initialize_rc_var_properly.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: cifs-utils-5.5-initialize_rc_var_properly.patch |
16 | =================================================================== |
17 | From 0eb3daa4b17ee64b464594f1a5d413ecb364957c Mon Sep 17 00:00:00 2001 |
18 | From: Jeff Layton <jlayton@×××××.org> |
19 | Date: Thu, 14 Jun 2012 10:59:18 -0400 |
20 | Subject: [PATCH 1/1] mount.cifs: set rc to 0 in libcap toggle_dac_capability |
21 | |
22 | Thus spake Jochen: |
23 | |
24 | The mount.cifs program from the cifs-utils package 5.5 did not work on |
25 | my Linux system. It just exited without an error message and did not |
26 | mount anything. |
27 | |
28 | [...] |
29 | |
30 | I think, when this variable rc is now used in this function, it has also |
31 | to be properly initialized there. |
32 | |
33 | Reported-by: Jochen Roderburg <roderburg@×××××××××.de> |
34 | Signed-off-by: Jeff Layton <jlayton@×××××.org> |
35 | --- |
36 | mount.cifs.c | 2 +- |
37 | 1 files changed, 1 insertions(+), 1 deletions(-) |
38 | |
39 | diff --git a/mount.cifs.c b/mount.cifs.c |
40 | index a1b0454..6f3f382 100644 |
41 | --- a/mount.cifs.c |
42 | +++ b/mount.cifs.c |
43 | @@ -495,7 +495,7 @@ free_caps: |
44 | static int |
45 | toggle_dac_capability(int writable, int enable) |
46 | { |
47 | - int rc; |
48 | + int rc = 0; |
49 | cap_t caps; |
50 | cap_value_t capability = writable ? CAP_DAC_OVERRIDE : CAP_DAC_READ_SEARCH; |
51 | |
52 | -- |
53 | 1.7.0.4 |