mount.cifs: initialize oldfsgid to surpress a warning while building for

RHEL 4 or CentOS 5.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=68
This commit is contained in:
Lars Müller 2012-06-12 21:06:37 +00:00 committed by Git OBS Bridge
parent 5157b1a4c9
commit 96aba2e36b
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,19 @@
commit a863c150676f36f37b3b48bca9a85a9cafa78f7a
Author: Lars Müller <lars@samba.org>
Date: Tue Jun 12 18:24:15 2012 +0200
Initialize oldfsgid to surpress one warning while building for RHEL 4
diff --git a/mount.cifs.c b/mount.cifs.c
index a1b0454..d040b27 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1814,7 +1814,7 @@ acquire_mountpoint(char **mountpointp)
{
int rc, dacrc;
uid_t realuid, oldfsuid;
- gid_t oldfsgid;
+ gid_t oldfsgid = 0;
char *mountpoint;
/*

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 12 20:05:38 UTC 2012 - lmuelle@suse.com
- mount.cifs: initialize oldfsgid to surpress a warning while building for
RHEL 4 or CentOS 5.
-------------------------------------------------------------------
Tue Jun 12 11:54:14 UTC 2012 - lmuelle@suse.com

View File

@ -28,6 +28,7 @@ Source1: cifs.init
Source2: mkinitrd_scripts_boot-cifs.sh
Source3: mkinitrd_scripts_setup-cifs.sh
Patch: set-rc-libcap-toggle_dac_capability.diff
Patch1: a863c150676f36f37b3b48bca9a85a9cafa78f7a.diff
%if 0%{?suse_version}
PreReq: insserv %{?fillup_prereq} mkinitrd
%else
@ -75,6 +76,7 @@ the Linux CIFS filesystem.
%prep
%setup -q
%patch -p1
%patch1 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fpie"