Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Change mktemp pattern #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

gdsotirov
Copy link
Contributor

On my system (Slackware64 14.2) the following command fails:

$ mktemp /tmp/make.sh.XXXX mktemp: cannot create temp file /tmp/make.sh.XXXX: Invalid argument

because the pattern should consist of 6 'Xs' according to the manual. Thus the following works like charm:

$ mktemp /tmp/make.sh.XXXXXX /tmp/make.sh.KVw3rQ

In the source tarball, I found only make.sh and util/generate-nagios-config to still be with 4 'Xs', so I'm providing here the necessary fixes. Please, consider applying them, to avoid unexpected errors on some systems.

Change patter for mktemp from XXXX to XXXXXX
Change patter for mktemp from XXXX to XXXXXX
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants