1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Fix if_version for interfaces with a if_version_minor field different from 0

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 7b6927832a1118b142d0d8a3a5548761f5a04f1a)
This commit is contained in:
Julien Kerihuel 2008-05-31 00:47:14 +02:00 committed by Stefan Metzmacher
parent f5604ebd61
commit 0c6ce977ff

View File

@ -688,7 +688,12 @@ sub ParseInterface($)
$version = "0.0";
if(defined $idl->{PROPERTIES}->{version}) {
$version = $idl->{PROPERTIES}->{version};
my @if_version = split(/\./, $idl->{PROPERTIES}->{version});
if ($if_version[0] == $idl->{PROPERTIES}->{version}) {
$version = $idl->{PROPERTIES}->{version};
} else {
$version = $if_version[1] << 16 | $if_version[0];
}
}
# If no endpoint is set, default to the interface name as a named pipe