[Request] [+ ] D8581: grep: test that paths get audited
valentin.gatienbaron (Valentin Gatien-Baron)
phabricator at mercurial-scm.org
Mon May 25 23:42:31 UTC 2020
valentin.gatienbaron created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8581
AFFECTED FILES
tests/test-grep.t
CHANGE DETAILS
diff --git a/tests/test-grep.t b/tests/test-grep.t
--- a/tests/test-grep.t
+++ b/tests/test-grep.t
@@ -670,6 +670,11 @@
$ rm -f added; ln -s symlink-added added
$ hg grep '' | grep added
added:symlink-added
+ $ mkdir dir; touch dir/f; hg add dir/f
+ $ rm -rf dir; ln -s / dir
+ $ hg grep ''
+ abort: path 'dir/f' traverses symbolic link 'dir'
+ [255]
#endif
which can be overridden by -rREV
To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200525/3666beae/attachment.html>
More information about the Mercurial-patches
mailing list