variable u should be static in uname processor type patch

This commit is contained in:
Ondřej Vašík 2011-08-18 17:58:14 +02:00 committed by Kamil Dudka
commit d76ed6576a
2 changed files with 3 additions and 2 deletions

View file

@ -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')

View file

@ -337,6 +337,7 @@ fi
* Mon Jan 30 2012 Kamil Dudka <kdudka@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@redhat.com> - 8.12-5
- output the correct ownership in chown -v (upstream bug #10636)