Hello to all,

looks like I found one point in amrecover source code which is totally
unclear to me or even looks like a bug. I've compiled AMANDA 2.4.2p2 with
the option "--with-portrange=10000,10100". Besides of some other troubles I
can't get amrecover working. It gives me the following error message:

    amrecover: did not get a reserved port: 10053

After digging into the source code I found that (amrecover.c line 530) the
port number is being checked against IPPORT_RESERVED variabled which is
equal to 1024 on my system (Solaris 2.8).

This port number is produced by the "stream_client" utility from stream.c.
And as one can see from the source code (stream.c line 218) if the PORTRANGE
was defined (exactly my case) the port is selected from the specified range.

So the question: does it mean that the option "--with-portrange" could only
be used with port numbers under the 1024 boundary or something is wrong with
the source code?

Thanks for any help in advance

Oleg


Reply via email to