projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1caf70
)
Remove un-necessary quoting
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 16 Nov 2009 20:06:34 +0000
(12:06 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 16 Nov 2009 20:06:34 +0000
(12:06 -0800)
time/time-lib.pl
patch
|
blob
|
history
diff --git
a/time/time-lib.pl
b/time/time-lib.pl
index
305b908
..
cd13d2d
100755
(executable)
--- a/
time/time-lib.pl
+++ b/
time/time-lib.pl
@@
-147,7
+147,8
@@
sub set_hardware_time
local ($second, $minute, $hour, $date, $month, $year) = @_;
$month++;
$year += 1900;
-local $format = "--set --date=\"".quotemeta("$month/$date/$year $hour:$minute:$second")."\"";
+local $format = "--set --date=".
+ quotemeta("$month/$date/$year $hour:$minute:$second");
local $flags = &get_hwclock_flags();
local $out = &backquote_logged("hwclock $flags $format 2>&1");
return $? ? $out : undef;