From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MThCa-0007KO-UM for garchives@archives.gentoo.org; Wed, 22 Jul 2009 19:10:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 373EDE0160; Wed, 22 Jul 2009 19:10:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1A030E0160 for ; Wed, 22 Jul 2009 19:10:07 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id AFC5D66DEC for ; Wed, 22 Jul 2009 19:10:06 +0000 (UTC) Received: from gengor by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MThCX-0006Q2-Vy for gentoo-commits@lists.gentoo.org; Wed, 22 Jul 2009 19:10:06 +0000 From: "Gordon Malm (gengor)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, gengor@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in media-video/shrip/files: shrip-0.5.0-wur.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: shrip-0.5.0-wur.patch X-VCS-Directories: media-video/shrip/files X-VCS-Committer: gengor X-VCS-Committer-Name: Gordon Malm Content-Type: text/plain; charset=utf8 Message-Id: Sender: Gordon Malm Date: Wed, 22 Jul 2009 19:10:05 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 405ca651-a4fd-479d-80e2-094d072f6f0e X-Archives-Hash: e5c3afa9a9697b5ac3378a67746414d0 gengor 09/07/22 19:10:05 Added: shrip-0.5.0-wur.patch Log: Fix bug 251367, work around 260847, adjust deps for 278726. (Portage version: 2.1.6.13/cvs/Linux i686) Revision Changes Path 1.1 media-video/shrip/files/shrip-0.5.0-wur.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/shrip/= files/shrip-0.5.0-wur.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/shrip/= files/shrip-0.5.0-wur.patch?rev=3D1.1&content-type=3Dtext/plain Index: shrip-0.5.0-wur.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Gentoo Bug #251367 : http://bugs.gentoo.org/show_bug.cgi?id=3D251367 --- src/shrip-common.c +++ src/shrip-common.c @@ -1567,13 +1567,14 @@ gchar *cwd, *message; gint result; =20 + cwd =3D g_get_current_dir (); + if (chdir (ogmrip_fs_get_tmp_dir ()) < 0) + return OGMJOB_RESULT_ERROR; + message =3D g_strdup (_("Merging audio and video streams")); g_signal_connect (container, "progress", G_CALLBACK (progress), messag= e); g_signal_connect (container, "run", G_CALLBACK (run), NULL); =20 - cwd =3D g_get_current_dir (); - chdir (ogmrip_fs_get_tmp_dir ()); - spawn =3D OGMJOB_SPAWN (container); result =3D ogmjob_spawn_run (OGMJOB_SPAWN (container), &tmp_error); spawn =3D NULL; @@ -1584,7 +1585,9 @@ if (tmp_error) g_propagate_error (error, tmp_error); =20 - chdir (cwd); + if (chdir (cwd) < 0) + result =3D OGMJOB_RESULT_ERROR; + g_free (cwd); =20 return result;