Results 1846 comments of Steven Allen

cc @sunfishcode thoughts? My concern is people using LDPRELOAD and other magic to intercept syscalls. Although maybe it's not a huge issue? Go makes direct syscalls as well. I'm going...

See https://github.com/Stebalien/tempfile/pull/61. Basically: needs implementation.

Ah. The information I was looking at was from 2011. Good to know.

More documentation would definitely be helpful. Specifically: 1. We need documentation on `NamedTempFile::new` explaining the default mode. 2. We need documentation on `Builder` explaining the defaults. 3. We need documentation...

I'd probably use `libc::umask` to determine the correct permissions but that sounds like a good idea.

Actually, this is a bit tricky. What if the user changes the file mode while it's a temporary file?

This really doesn't belong in `NamedTemporaryFile`. Originally, I had a separate `TempFile` type for unnamed temporary files and planned on adding this feature to them. Unfortunately, I then learned that...

> How about making path() panic for deleted files (on all platforms)? The point of named temporary files is for them to be named. That's why I'm not a fan...

So, after thinking about this, I'm really not convinced it's worth it. The primary goal of this library is to be completely cross-platform and abstract away all the platform-specific nonsense...

This temporary file library is equivalent to `mkstemp`. The relevant part of the document is: > However, mkstemp() still suffers from the use of predictable file names and can leave...