Lines 147-155
Link Here
|
147 |
<< "#\n#\n# ============== ROUTING RULES ============== \n#" |
147 |
<< "#\n#\n# ============== ROUTING RULES ============== \n#" |
148 |
<< endl; |
148 |
<< endl; |
149 |
|
149 |
|
150 |
compiler->output << "TMPDIRNAME=\"/tmp/.fwbuilder.tempdir.$$\"" << endl; |
150 |
compiler->output << "TMPDIRNAME=\"$(umask 077 && mktemp --tmpdir=/tmp -d .fwbuilder.tempdir.XXXXXXXXXX)\"" << endl; |
|
|
151 |
compiler->output << "[ $? != 0 ] && exit 1" << endl; |
151 |
compiler->output << "TMPFILENAME=\"$TMPDIRNAME/.fwbuilder.out\"" << endl; |
152 |
compiler->output << "TMPFILENAME=\"$TMPDIRNAME/.fwbuilder.out\"" << endl; |
152 |
compiler->output << "(umask 077 && mkdir $TMPDIRNAME) || exit 1" << endl; |
|
|
153 |
compiler->output << endl; |
153 |
compiler->output << endl; |
154 |
|
154 |
|
155 |
compiler->output << "# This function stops stdout redirection" |
155 |
compiler->output << "# This function stops stdout redirection" |