Is this Ruby documentation for install() correct? mode: permissions - changes th...

@drj@typo.social

Is this Ruby documentation for install() correct?

mode: <i>permissions</i> - changes the permissions. using File.chmod.

So if i use the mode: keyword it changes the permissions _after_ the file has been installed? Isn't that like, a gigantic insecure race-condition? (for example, a file may be required to be installed not-world-readable, but if a chmod is applied _after_ the copy, there will be a period where it may be world-readable).

Isn't the whole point of using `install(1)` that i shouldn't be worrying about stuff like this?
#Ruby