[GRASS-SVN] r35919 - grass/trunk/general/g.rename

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 18 13:16:34 EST 2009


Author: glynn
Date: 2009-02-18 13:16:34 -0500 (Wed, 18 Feb 2009)
New Revision: 35919

Modified:
   grass/trunk/general/g.rename/main.c
Log:
Make old == new check case-insensitive


Modified: grass/trunk/general/g.rename/main.c
===================================================================
--- grass/trunk/general/g.rename/main.c	2009-02-18 13:31:10 UTC (rev 35918)
+++ grass/trunk/general/g.rename/main.c	2009-02-18 18:16:34 UTC (rev 35919)
@@ -86,7 +86,7 @@
 		G_warning(_("<%s> is an illegal file name"), new);
 		continue;
 	    }
-	    if (strcmp(old, new) == 0) {
+	    if (G_strcasecmp(old, new) == 0) {
 		G_warning(_("%s=%s,%s: files are the same, no rename required"),
 			  parm[n]->key, old, new);
 		continue;



More information about the grass-commit mailing list