Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mktemp error #9

Closed
braddeicide opened this issue Mar 30, 2013 · 1 comment
Closed

mktemp error #9

braddeicide opened this issue Mar 30, 2013 · 1 comment

Comments

@braddeicide
Copy link

The calls to mktemp need to have at least 6 X's otherwise they fail with

mktemp: cannot make temp dir /tmp/flashrd.d1YCuO/mkboot.XXXX: Invalid argument
mktemp: cannot make temp file /tmp/flashrd.d1YCuO/mkbootlabel.XXXX: Invalid argument

This was on 5.3 pulled from cvs 30th March.

@yellowman
Copy link
Owner

thank you, now fixed

yellowman added a commit to yellowman/nsh that referenced this issue Sep 2, 2015
"Require that the template include at least 6 trailing Xs to match
POSIX mkstemp/mkdtemp.  Check before the call to mkstemp/mkdtemp
so we can give a better error message than "invalid argument"."

noticed by braddeicide yellowman/flashrd#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants