10 X's for mkstemp(), and don't redefine _PATH_TMP
This commit is contained in:
parent
fd8b701ac9
commit
4d100bef50
@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
|
||||
|
||||
char *dkname;
|
||||
char *specname;
|
||||
char tmpfil[] = _PATH_TMP;
|
||||
char tmpfil[] = PATH_TMPFILE;
|
||||
|
||||
char namebuf[BBSIZE], *np = namebuf;
|
||||
struct disklabel lab;
|
||||
|
@ -30,11 +30,10 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <paths.h>
|
||||
|
||||
#define _PATH_BOOTDIR "/boot"
|
||||
#undef _PATH_TMP
|
||||
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
|
||||
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"
|
||||
|
@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
|
||||
|
||||
char *dkname;
|
||||
char *specname;
|
||||
char tmpfil[] = _PATH_TMP;
|
||||
char tmpfil[] = PATH_TMPFILE;
|
||||
|
||||
char namebuf[BBSIZE], *np = namebuf;
|
||||
struct disklabel lab;
|
||||
|
@ -30,11 +30,10 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <paths.h>
|
||||
|
||||
#define _PATH_BOOTDIR "/boot"
|
||||
#undef _PATH_TMP
|
||||
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
|
||||
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"
|
||||
|
Loading…
Reference in New Issue
Block a user