From 021c3ce3426825731a94ce0312da16c70d84c5df Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Sep 2022 19:19:14 +0100 Subject: dgit: unrepresentable check: Normalise the mode for exec Now we use git diffs, which can represent changes to the executability of files. dpkg-source uses diff(1) to apply these. So it all works. Handle this by normalising the +x bits before seeing if the mode changed. Now we properly support executable files. Closes: #995056 Signed-off-by: Ian Jackson --- tests/tests/unrepresentable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable index fa1f985..70f7f78 100755 --- a/tests/tests/unrepresentable +++ b/tests/tests/unrepresentable @@ -132,7 +132,7 @@ finish GOOD:'deleted unwritable' LATE-EP:'Mode change from 644 to 000000' start src.c chmod +x src.c git add src.c -finish 'EP:mode or type changed' LATE-EP:'Mode change from 644 to 755' +finish GOOD:chmod LATE-EP:'Mode change from 644 to 755' start newx echo hi >newx -- cgit v1.2.3