From: Ian Jackson Date: Wed, 28 Sep 2016 22:48:02 +0000 (+0100) Subject: Fix two calls to chdir without proper error checking. X-Git-Tag: archive/debian/2.0~102 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dc217db9c437a31fed60485fc4fc2c18aa0b7d69;p=dgit.git Fix two calls to chdir without proper error checking. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 5ecee038..e0d986c8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -53,6 +53,7 @@ dgit (1.5~~) unstable; urgency=medium * Turn off git gc in the private working areas. * Do not fail to do some important quilt processing in some --quilt modes. + * Fix two calls to chdir without proper error checking. * Fix a couple of bugs in error reporting. Test suite: diff --git a/dgit b/dgit index d8ab871a..cdf2e93b 100755 --- a/dgit +++ b/dgit @@ -3777,12 +3777,12 @@ sub quilt_fixup_singlepatch ($$$) { rmtree("debian/patches"); runcmd @dpkgsource, qw(-b .); - chdir ".."; + changedir ".."; runcmd @dpkgsource, qw(-x), (srcfn $version, ".dsc"); rename srcfn("$upstreamversion", "/debian/patches"), "work/debian/patches"; - chdir "work"; + changedir "work"; commit_quilty_patch(); }