|
|
Log in / Subscribe / Register

Rust 1.58.1 released

Rust 1.58.1 released

Posted Jan 22, 2022 17:12 UTC (Sat) by willy (subscriber, #9762)
In reply to: Rust 1.58.1 released by jra
Parent article: Rust 1.58.1 released

Maybe we could add a prctl() to indicate the process wishes to see ENOENT when trying to resolve a pathname that includes a symlink? Or ELOOP if you'd rather have it behave like RESOLVE_NO_SYMLINKS


to post comments

Rust 1.58.1 released

Posted Jan 22, 2022 21:53 UTC (Sat) by jra (subscriber, #55261) [Link]

Excellent suggestions, thanks ! I'll think about possible fixes and make some suggestions in my talk.

Rust 1.58.1 released

Posted Jan 23, 2022 15:02 UTC (Sun) by ibukanov (subscriber, #3942) [Link] (1 responses)

It will be even more useful to restrict this to symlinks to files while allowing to resolve symlinks to directories. Most of the problems with symlinks come from opening files that are symlinks, not symlinks to directories.

Rust 1.58.1 released

Posted Feb 10, 2022 18:38 UTC (Thu) by nix (subscriber, #2304) [Link]

Quite. And symlinks to directories are critically useful to administrators, far more so than symlinks to files: they give you a large portion of what hardlinks to directories would (at least until you try to rm them). Bind mounts do the same, but bind mounts don't persist across reboots without entries for each one in fstab or some other more or less manual management scheme, and frankly to this day have often bizarre and unclear semantics if you try to export them over a network.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds