<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/fs-mistrust/src/walk.rs, branch arti-v1.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-09-10T12:39:47Z</updated>
<entry>
<title>fix clippy::needless_borrow</title>
<updated>2022-09-10T12:39:47Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-09-10T12:39:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8e7a904260dfe344eed70a9eef109695544347c1'/>
<id>urn:sha1:8e7a904260dfe344eed70a9eef109695544347c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'compact_home_2' into 'main'</title>
<updated>2022-08-31T13:57:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-31T13:57:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77cb5acceb39d7fc0e67693c55619b43923c6cea'/>
<id>urn:sha1:77cb5acceb39d7fc0e67693c55619b43923c6cea</id>
<content type='text'>
Represent the home directory as ${HOME} or %UserProfile%

Closes #555

See merge request tpo/core/arti!700</content>
</entry>
<entry>
<title>fs-mistrust: Add a `anonymize_home` extension fn for Path.</title>
<updated>2022-08-31T13:38:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-26T13:06:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7888ca09d281e6b6726e86d514ae00c8775a05ed'/>
<id>urn:sha1:7888ca09d281e6b6726e86d514ae00c8775a05ed</id>
<content type='text'>
This function transforms `/home/nickm/.config` to
`${HOME}/.config/`, so that we can expose the username less in our
logs.
</content>
</entry>
<entry>
<title>Mark the repeats and looping tests in fs-mistrust as Unix-only.</title>
<updated>2022-08-26T19:30:20Z</updated>
<author>
<name>Alexander Færøy</name>
<email>ahf@torproject.org</email>
</author>
<published>2022-08-26T19:30:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=edec8f3ecd37b759e911c66855cc3efb16cb8938'/>
<id>urn:sha1:edec8f3ecd37b759e911c66855cc3efb16cb8938</id>
<content type='text'>
See: tpo/core/art#557.
</content>
</entry>
<entry>
<title>fs-mistrust: Try to handle verbatim prefixes in test.</title>
<updated>2022-08-26T14:56:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-26T14:50:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c1f64144b3f3c73e3e7b5d439d73dfe2352ae57c'/>
<id>urn:sha1:c1f64144b3f3c73e3e7b5d439d73dfe2352ae57c</id>
<content type='text'>
We have a test that tries to check that our outputs are the same as
those from `std::fs::canonicalize`.  But on Windows, they aren't:
There, `canonicalize` also puts path prefixes into a "Verbatim"
form.

This patch tries to replicate that behavior for the test only.  If
we find that it's unreliable, though, our best bet is probably to
revise or disable this check on Windows, rather than chasing
compatibility with `GetFinalPathNameByHandle`.

Should fix part of #557.
</content>
</entry>
<entry>
<title>fs-mistrust: Clarify comment on `stack`</title>
<updated>2022-08-26T14:14:40Z</updated>
<author>
<name>Ian Jackson</name>
<email>iwj@torproject.org</email>
</author>
<published>2022-08-26T14:14:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ca4ca75ede5b3d6f89ba878f935941d9400b0ea3'/>
<id>urn:sha1:ca4ca75ede5b3d6f89ba878f935941d9400b0ea3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fs-mistrust: Handle windows prefixes specially.</title>
<updated>2022-08-26T13:43:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-26T13:36:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5e7a62dff26640e7a97e69e8a499a57eacdc8a5f'/>
<id>urn:sha1:5e7a62dff26640e7a97e69e8a499a57eacdc8a5f</id>
<content type='text'>
On Windows, paths can have a "prefix", like `C:` or
`\\server\share`.  Attempts to get metadata for these prefixes
appear to fail with `ERROR_INVALID_FUNCTION`, since they are not
files.

This patch teaches fs-mistrust about prefixes on Windows, and tells
it that attempts to find their metadata are allowed to fail.

Doing this may solve part of #557.
</content>
</entry>
<entry>
<title>fs-mistrust: write a lot about TOCTOU issues.</title>
<updated>2022-05-03T14:03:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-05-03T13:56:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f35b4881295f52c252236b151764e82dbcb3b332'/>
<id>urn:sha1:f35b4881295f52c252236b151764e82dbcb3b332</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fs-mistrust: refactor ResolvePath  to avoid temporary changes.</title>
<updated>2022-05-03T14:03:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-27T15:58:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c09a613590a0e2b8b6e3fcea601f6dfddab7b60a'/>
<id>urn:sha1:c09a613590a0e2b8b6e3fcea601f6dfddab7b60a</id>
<content type='text'>
Previously we would temporarily put self.resolved into an invalid
state by adding a path component that might be a symlink.  With this
change, we create a new temporary path object (using Cow to avoid
unnecessary allocations) and only conditionally replace
self.resolved.
</content>
</entry>
<entry>
<title>fs-mistrust: clarify and test behavior for ".." past the fs root.</title>
<updated>2022-05-03T14:03:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-27T15:36:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8e25954c49aff0b1fc64fea0b7457e029b1c805d'/>
<id>urn:sha1:8e25954c49aff0b1fc64fea0b7457e029b1c805d</id>
<content type='text'>
</content>
</entry>
</feed>
