git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Externals/dropbear - Disabled X forwarding
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Filesystems
/
InitRD
/
GenerateInitRD.php
diff --git
a/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php
b/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php
index
4a6635b
..
44c005a
100644
(file)
--- a/
KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php
+++ b/
KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php
@@
-1,4
+1,6
@@
<?php
<?php
+date_default_timezone_set("UTC");
+
$lGenDate = date("Y-m-d H:i");
$gOutput = <<<EOF
/*
$lGenDate = date("Y-m-d H:i");
$gOutput = <<<EOF
/*
@@
-45,8
+47,12
@@
foreach($lines as $line)
continue;
}
// File
continue;
}
// File
- if(preg_match('/^File\s+"([^"]+)"
\s+"([^"]+)"
$/', $line, $matches))
+ if(preg_match('/^File\s+"([^"]+)"
(?:\s+"([^"]+)")?
$/', $line, $matches))
{
{
+ if( !isset($matches[2]) ) {
+ $matches[2] = $matches[1];
+ $matches[1] = basename($matches[2]);
+ }
$lStack[$lDepth][1][] = array($matches[1], $matches[2]);
continue;
}
$lStack[$lDepth][1][] = array($matches[1], $matches[2]);
continue;
}
UCC
git Repository :: git.ucc.asn.au