Hello community, here is the log from the commit of package microcode_ctl for openSUSE:Factory checked in at Mon May 23 15:03:59 CEST 2011.
-------- --- microcode_ctl/microcode_ctl.changes 2011-05-10 04:05:58.000000000 +0200 +++ /mounts/work_src_done/STABLE/microcode_ctl/microcode_ctl.changes 2011-05-22 04:08:15.000000000 +0200 @@ -1,0 +2,5 @@ +Sun May 22 02:07:20 UTC 2011 - [email protected] + +- Open all FD with O_CLOEXEC + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- microcode-ctl-cloexec.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ microcode_ctl.spec ++++++ --- /var/tmp/diff_new_pack.IjhmCe/_old 2011-05-23 14:50:05.000000000 +0200 +++ /var/tmp/diff_new_pack.IjhmCe/_new 2011-05-23 14:50:05.000000000 +0200 @@ -27,13 +27,14 @@ Group: Hardware/Other Summary: Microcode Updates for Intel CPUs Version: 1.17 -Release: 123 +Release: 125 Source0: microcode_ctl-%{version}.tar.bz2 Source1: microcode.init Source2: microcode-%{intel_version}.dat.bz2 Source3: amd-ucode-%{amd_version}.tar.bz2 Patch0: microcode.ctl_1.17-13.diff.gz Patch1: microcode_ctl-1.17-suse_rh_paths.patch +Patch2: microcode-ctl-cloexec.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(pre): %insserv_prereq @@ -45,6 +46,7 @@ %setup -q -a 3 %patch0 -p1 %patch1 +%patch2 %build make CFLAGS="$RPM_OPT_FLAGS -I." ++++++ microcode-ctl-cloexec.patch ++++++ --- microcode_ctl.c.orig +++ microcode_ctl.c @@ -10,6 +10,7 @@ * */ +#define _GNU_SOURCE #include <fcntl.h> #include <stdio.h> #include <stdlib.h> @@ -66,7 +67,7 @@ static int do_update(char *device, char return ENOMEM; } - if( (fp=fopen(filename, "r")) == NULL){ + if( (fp=fopen(filename, "re")) == NULL){ if(print_error_messages) fprintf(stderr, "%s: cannot open source file '%s' errno=%d (%s)\n", @@ -117,7 +118,7 @@ static int do_update(char *device, char if(print_normal_messages) fprintf(stderr, "%s: writing microcode (length: %d)\n", progname, length); - if((outfd = open(device, O_WRONLY)) == -1){ + if((outfd = open(device, O_WRONLY|O_CLOEXEC)) == -1){ if(print_error_messages) fprintf(stderr, "%s: cannot open %s for writing errno=%d (%s)\n", progname, device, errno, strerror(errno)); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
