2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-01 00:57:37 +00:00

Use File::Temp::tmpnam() instead of POSIX::tmpnam() (#5443)

This commit is contained in:
Gᴏɴɢ Jie
2018-07-27 17:40:33 +08:00
committed by yangsong
parent ee6314cb10
commit 738e5c8814
2 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ use xCAT::Utils;
use xCAT::TableUtils;
use Getopt::Long;
use File::Spec;
use POSIX qw(tmpnam);
use File::Temp;
my $packages_dir = ();
my $activate = ();
@@ -662,7 +662,7 @@ sub rflash {
########################
# Now build a temporary file containing the stanzas to be run on the HMC
###################
my $tmp_file = tmpnam(); # the file handle of the stanza
my $tmp_file = File::Temp::tmpnam(); # the file handle of the stanza
##############################
# Open the temp file
##########################

View File

@@ -15,6 +15,7 @@ use strict;
use Storable qw(dclone);
use File::Basename;
use File::Path;
use File::Temp;
use POSIX;
require xCAT::Table;
use Data::Dumper;
@@ -882,7 +883,7 @@ sub process_servicenodes_xdsh
# build a tmp syncfile with
# $::dshexecute -> $synfiledir . $::dshexecute
# $::dshenvfile -> $synfiledir . $::dshenvfile
my $tmpsyncfile = POSIX::tmpnam . ".dsh";
my $tmpsyncfile = File::Temp::tmpnam . ".dsh";
# if -E option
my $envfile;