]> Cypherpunks repositories - goredo.git/commitdiff
Prepare for release
authorSergey Matveev <stargrave@stargrave.org>
Sun, 26 Oct 2025 14:04:52 +0000 (17:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 26 Oct 2025 14:10:47 +0000 (17:10 +0300)
doc/news.texi
t/goredo-executable-rel.t [new file with mode: 0755]

index aae9c15bd31bb4ffe6f18bfd0bd2822e297f9271..726f1855594d53927773e61ad77eb276abfcdd38 100644 (file)
@@ -5,6 +5,9 @@
 @anchor{Release 2_6_5}
 @section Release 2.6.5
 @itemize
+@item
+    Fix file's executable bit check, which may lead to inadmissible
+    @command{/bin/sh} run in case of symbolic links presence.
 @item
     Fix proper @command{mtime}'s nanoseconds storage.
 @end itemize
diff --git a/t/goredo-executable-rel.t b/t/goredo-executable-rel.t
new file mode 100755 (executable)
index 0000000..32891c4
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+test_description="Check that relative executable target through symlink is run"
+. $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
+
+cat >foo.do <<EOF
+#!/usr/bin/env perl
+use strict;
+EOF
+chmod +x foo.do
+mkdir -p a/b
+ln -s a/b b
+cd b
+test_expect_success "succeeds" 'redo "$REDO_TOP_DIR"/foo'
+
+test_done