Hello community, here is the log from the commit of package libjackasyn for openSUSE:Factory checked in at Tue Nov 10 12:39:49 CET 2009. -------- --- libjackasyn/libjackasyn.changes 2009-04-02 15:22:28.000000000 +0200 +++ /mounts/work_src_done/STABLE/libjackasyn/libjackasyn.changes 2009-11-06 11:17:51.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Nov 6 11:17:27 CET 2009 - tiwai@suse.de + +- fix missing close() (bnc#544220) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- libjackasyn-missing-close.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libjackasyn.spec ++++++ --- /var/tmp/diff_new_pack.JajsqD/_old 2009-11-10 12:38:56.000000000 +0100 +++ /var/tmp/diff_new_pack.JajsqD/_new 2009-11-10 12:38:56.000000000 +0100 @@ -19,16 +19,17 @@ Name: libjackasyn -BuildRequires: jack-devel libsamplerate-devel +BuildRequires: libjack-devel libsamplerate-devel Summary: A Wrapper Library for JACK Version: 0.12 -Release: 170 +Release: 171 License: GPL v2 or later Group: Productivity/Multimedia/Sound/Utilities Url: http://gige.xdv.org/soft/libjackasyn Source: %{name}-%{version}.tar.bz2 Patch: libjackasyn-install-fix.dif Patch1: libjackasyn-coptflags.diff +Patch2: libjackasyn-missing-close.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -45,6 +46,7 @@ %setup -q %patch %patch1 +%patch2 -p1 %build %{?suse_update_config:%{suse_update_config -f}} ++++++ libjackasyn-missing-close.diff ++++++ --- libjackasyn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/libjackasyn.c +++ b/libjackasyn.c @@ -41,12 +41,15 @@ sprintf(path,"/proc/%d/status",pid); fd = open(path,O_RDONLY); - + if (fd < 0) + return NULL; if (read(fd,namefield,256)<0) { fprintf(stderr,"libjackasyn: cannot get application name\n"); + close(fd); return NULL; } + close(fd); n = namefield + strlen("Name: "); len=0; while (*(n+len) != '\n' && len < 255) len++; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org