[coreutils/f16] variable u should be static in uname processor type patch
Kamil Dudka
kdudka at fedoraproject.org
Mon Jan 30 12:04:03 UTC 2012
commit d76ed6576ad500eedc2d7788ea0f4639e00c753c
Author: Ondřej Vašík <ovasik at redhat.com>
Date: Thu Aug 18 17:58:14 2011 +0200
variable u should be static in uname processor type patch
coreutils-8.2-uname-processortype.patch | 4 ++--
coreutils.spec | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/coreutils-8.2-uname-processortype.patch b/coreutils-8.2-uname-processortype.patch
index 166520d..4c83df8 100644
--- a/coreutils-8.2-uname-processortype.patch
+++ b/coreutils-8.2-uname-processortype.patch
@@ -16,7 +16,7 @@ diff -urNp coreutils-8.2-orig/src/uname.c coreutils-8.2/src/uname.c
}
+#else
+ {
-+ struct utsname u;
++ static struct utsname u;
+ uname(&u);
+ element = u.machine;
+ }
@@ -38,7 +38,7 @@ diff -urNp coreutils-8.2-orig/src/uname.c coreutils-8.2/src/uname.c
}
+#else
+ {
-+ struct utsname u;
++ static struct utsname u;
+ uname(&u);
+ element = u.machine;
+ if(strlen(element)==4 && element[0]=='i' && element[2]=='8' && element[3]=='6')
diff --git a/coreutils.spec b/coreutils.spec
index 91f0f5c..81707d3 100644
--- a/coreutils.spec
+++ b/coreutils.spec
@@ -337,6 +337,7 @@ fi
* Mon Jan 30 2012 Kamil Dudka <kdudka at redhat.com> - 8.12-6
- do not use shebang in sourced colorls.csh
- su: fix shell suspend in tcsh (#597928)
+- variable "u" should be static in uname processor type patch
* Sun Jan 29 2012 Kamil Dudka <kdudka at redhat.com> - 8.12-5
- output the correct ownership in chown -v (upstream bug #10636)
More information about the scm-commits
mailing list