remove POSIX dependency
This commit is contained in:
parent
7bf018748f
commit
fdc917b045
@ -3,7 +3,6 @@
|
|||||||
use strict;
|
use strict;
|
||||||
#use serialize;
|
#use serialize;
|
||||||
use IO::File;
|
use IO::File;
|
||||||
use POSIX;
|
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
my $CFILE = $ENV{'HOME'} . '/.bip/bip.conf.autogen';
|
my $CFILE = $ENV{'HOME'} . '/.bip/bip.conf.autogen';
|
||||||
@ -452,9 +451,9 @@ authorityKeyIdentifier=keyid:always";
|
|||||||
|
|
||||||
sub writeConfig {
|
sub writeConfig {
|
||||||
my ($f) = @_;
|
my ($f) = @_;
|
||||||
my ($fh, $ts);
|
my ($fh, $ts, @t);
|
||||||
|
|
||||||
$ts = POSIX::strftime('%a, %d %b %Y %H:%M:%S %z', localtime(time));
|
$ts = localtime(time));
|
||||||
$fh = new IO::File;
|
$fh = new IO::File;
|
||||||
$fh->open('> ' . $f) || return "Unable to open $f for writing";
|
$fh->open('> ' . $f) || return "Unable to open $f for writing";
|
||||||
print $fh "# vim:ft=bip:ts=2\n";
|
print $fh "# vim:ft=bip:ts=2\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user