X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-MDRemoteIP: 213.123.247.160 X-Return-Path: prvs=1184dfc6e5=steven AT multiplay DOT co DOT uk X-Envelope-From: steven AT multiplay DOT co DOT uk X-MDaemon-Deliver-To: cygwin AT cygwin DOT com Message-ID: <48D8A2544E5F4742BBBF768D5D61EE39@multiplay.co.uk> From: "Steven Hartland" To: "Cygwin List" Subject: inet_pton returns 1 on error Date: Sat, 25 Oct 2008 20:10:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-Spam-Processed: mail1.multiplay.co.uk, Sat, 25 Oct 2008 20:10:57 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Sat, 25 Oct 2008 20:10:57 +0100 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com When given an invalid mask such as "24" cygwin's inet_pton returns 1 instead of either 0 or -1 signifying an error. This causes rsync to fail access checks for CIDR notation. Regards Steve -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/