Notes |
|
(0000982)
|
user4
|
2009-01-07 20:38
|
|
Reminder sent to: rbalzard |
|
|
(0000983)
|
user4
|
2009-01-07 20:41
|
|
--- pf/lib/pf/os.pm 76c24b3e0604ca394a2e32b4f3a0e763163f64e2
+++ pf/lib/pf/os.pm b42265145182b89af69b49faf778603446a9bf2f
@@ -75,9 +75,16 @@ sub read_dhcp_fingerprints_conf {
my $os_id = $os;
$os_id =~ s/^os\s+//;
$os_add_sql->execute($os_id,$dhcp_fingerprints{$os}{"description"});
- foreach my $dhcp_fingerprint (@{$dhcp_fingerprints{$os}{"fingerprints"}}) {
- $fp_total++;
- $dhcp_fingerprint_add_sql->execute($dhcp_fingerprint, $os_id);
+ if (exists($dhcp_fingerprints{$os}{"fingerprints"})) {
+ if (ref($dhcp_fingerprints{$os}{"fingerprints"}) eq "ARRAY") {
+ foreach my $dhcp_fingerprint (@{$dhcp_fingerprints{$os}{"fingerprints"}}) {
+ $fp_total++;
+ $dhcp_fingerprint_add_sql->execute($dhcp_fingerprint, $os_id);
+ }
+ } else {
+ $fp_total++;
+ $dhcp_fingerprint_add_sql->execute($dhcp_fingerprints{$os}{"fingerprints"}, $os_id);
+ }
}
foreach my $class (tied(%dhcp_fingerprints)->GroupMembers("class")) {
my $os_class = $class; |
|
|
(0000984)
|
user4
|
2009-01-07 20:42
|
|
fixed in mtn revision bb72f5e79350852ebe8acb6c57f456fbcc20aa24 |
|
|
(0001041)
|
user4
|
2009-01-26 12:34
|
|
bug exists also at another spot in the code:
./bin/pfcmd config help general.hostname
Can't use string ("Hostname of PacketFence system. ") as an ARRAY ref while "strict refs" in use at ./bin/pfcmd line 849. |
|
|
(0001042)
|
user4
|
2009-01-26 12:35
|
|
fixed in mtn revision f4fe0705cb8dc970da0f047744b327361423fa41 |
|