"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Ocsinventory/Agent/Backend/OS/MacOS/Domains.pm" between
Ocsinventory-Unix-Agent-2.6.1.tar.gz and Ocsinventory-Unix-Agent-2.8.0.tar.gz

About: Ocsinventory-Agent is a Linux agent for OCS Inventory NG.

Domains.pm  (Ocsinventory-Unix-Agent-2.6.1):Domains.pm  (Ocsinventory-Unix-Agent-2.8.0)
skipping to change at line 40 skipping to change at line 40
$domain{$2} = 1 if (/^(domain|search)\s+(.+)/); $domain{$2} = 1 if (/^(domain|search)\s+(.+)/);
} }
close RESOLV; close RESOLV;
$domain = join "/", keys %domain; $domain = join "/", keys %domain;
} }
# If no domain name, we send "WORKGROUP" # If no domain name, we send "WORKGROUP"
$domain = 'WORKGROUP' unless $domain; $domain = 'WORKGROUP' unless $domain;
# User domain
my $userdomain = `defaults read /Library/Preferences/SystemConfiguration/com
.apple.smb.server Workgroup 2>/dev/null`;
chomp($userdomain);
if ($userdomain eq "" ) {
$userdomain = `hostname -s`;
chomp($userdomain);
}
$common->setHardware({ $common->setHardware({
WORKGROUP => $domain WORKGROUP => $domain
}); });
} }
1; 1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)