Page MenuHomeFreeBSD

Allow install(1)'s create_tempfile() to work on Linux hosts
ClosedPublic

Authored by arichardson on Jul 14 2020, 9:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 12:10 AM
Unknown Object (File)
Thu, Apr 11, 7:51 PM
Unknown Object (File)
Sat, Mar 30, 11:49 AM
Unknown Object (File)
Feb 11 2024, 4:14 AM
Unknown Object (File)
Jan 27 2024, 9:40 AM
Unknown Object (File)
Jan 22 2024, 1:08 PM
Unknown Object (File)
Dec 28 2023, 7:43 AM
Unknown Object (File)
Dec 21 2023, 4:37 PM
Subscribers

Details

Summary

GLibc expects six 'X' characters in the mkstemp template argument

Test Plan

install(1) no longer fails with EINVAL in certain cases

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32312
Build 29795: arc lint + arc unit

Event Timeline

arichardson created this revision.

manpage refers to the string and needs to be updated

In D25662#567794, @mjg wrote:

manpage refers to the string and needs to be updated

Good catch! I was not expecting this string to be used in the documentation so I didn't look at the manpage.

I think a better comment would be that glibc requires at least 6 chars, but I don't think it matters.

This revision is now accepted and ready to land.Jul 14 2020, 10:20 AM

Agree @mjg's comment is a slight improvement

Or you could just remove the comment. I can't imagine anyone ever coming along and reducing the number of random characters again.