Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: resources by xunsun from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Sat, 11 Feb 2006 07:34:11 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: resources by xunsun from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : xunsun
Host    : 
Project : linux-ha
Module  : resources

Dir     : linux-ha/resources/OCF


Modified Files:
        apache.in 


Log Message:
cleanup
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/resources/OCF/apache.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- apache.in   21 Dec 2005 05:36:52 -0000      1.13
+++ apache.in   11 Feb 2006 14:34:11 -0000      1.14
@@ -210,19 +210,10 @@
 }
 
 #
-#      Check if the port is valid, this function code is not decent, but works
+#      Check if the port is valid
 #
 CheckPort() {
-#      Examples of valid port: "1080", "1", "0080"
-#      Examples of invalid port: "1080bad", "0", "0000", ""
-  case "$1" in
-    *[^0-9]*) #got invalid char
-       false;;
-    *[1-9]*) #no invalid char, and has non-zero digit, so is a good port
-       true;;
-    *) #empty string, or string of 0's 
-       false;;
-  esac
+  ocf_is_decimal "$1" && [ $1 -gt 0 ]
 }
 
 




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 27, Issue 51
********************************************

Reply via email to