[csw-devel] SF.net SVN: gar:[11407] csw/mgar/pkg/cswclassutils/trunk/files/ CSWcswclassutils.i.cswinitsmf

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Oct 26 04:18:40 CEST 2010


Revision: 11407
          http://gar.svn.sourceforge.net/gar/?rev=11407&view=rev
Author:   bdwalton
Date:     2010-10-26 02:18:40 +0000 (Tue, 26 Oct 2010)

Log Message:
-----------
cswclassutils: cswinitsmf: correct grep used in FMRI validation; Mantis 4588

Modified Paths:
--------------
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf	2010-10-26 01:30:19 UTC (rev 11406)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf	2010-10-26 02:18:40 UTC (rev 11407)
@@ -21,6 +21,7 @@
 #            Support custom manifests (Bug ID 0003636)
 # 2009-08-05 Set new timeout values for manifest (Bug ID 0003764)
 # 2009-08-10 Fix autoenable bug (Bug ID 0003785)
+# 2010-10-25 Fix grep bug in FMRI 'dot in name' detection (Bug ID 0004588)
 
 DEBUG=		# clear to disable debug, set to anything to enable
 SVCDIR=/var/opt/csw/svc
@@ -92,7 +93,7 @@
     FMRI=
     if [ "`grep '^#FMRI' $dest`" ]; then
       FMRI=`grep '^#FMRI' $dest | awk '{print $2}'`
-      if [ "`echo $FMRI | grep '.'`" ]; then
+      if [ "`echo $FMRI | grep '\.'`" ]; then
         echo "WARNING! FMRI path contained an illegal dot (removed)"
         FMRI=`echo $FMRI | sed 's/\.//g'`
         echo "New FMRI path: $FMRI"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list