From b2c33ddc8e1674ea9c58c11827b997e4b9816ddc Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Fri, 28 Feb 2003 16:12:14 +0000 Subject: fix client_dhcp (remove call to date and replace it by gmtime) --- client_wizard/scripts/Clientconf.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client_wizard') diff --git a/client_wizard/scripts/Clientconf.pm b/client_wizard/scripts/Clientconf.pm index 3b480b3f..b148cec8 100644 --- a/client_wizard/scripts/Clientconf.pm +++ b/client_wizard/scripts/Clientconf.pm @@ -55,7 +55,9 @@ sub get_root { sub up_serial { my ($file) = @_; - my $serial_nbm = `date +%Y%m%d00` or die "date not found: $!"; + my (undef, undef, undef, $mday, $mon, $year) = gmtime(time); + $year += 1900; + my $serial_nbm = sprintf "%4dY%2dm%2d00", $year, $mon, $mday; output($file, map { my $line = $_; if (/^(\s*)(\d*)(\s*;\s*Serial.*)$/) { -- cgit v1.2.1