[GRASS-SVN] r46041 - grass/branches/develbranch_6/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 19 05:17:35 EDT 2011


Author: mmetz
Date: 2011-04-19 02:17:35 -0700 (Tue, 19 Apr 2011)
New Revision: 46041

Modified:
   grass/branches/develbranch_6/lib/vector/Vlib/map.c
Log:
attempted fix for bug #1158

Modified: grass/branches/develbranch_6/lib/vector/Vlib/map.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/map.c	2011-04-18 22:38:21 UTC (rev 46040)
+++ grass/branches/develbranch_6/lib/vector/Vlib/map.c	2011-04-19 09:17:35 UTC (rev 46041)
@@ -521,7 +521,7 @@
 	sprintf(buf, "%s/%s/vector/%s/%s", G_location_path(), G_mapset(), map,
 		ent->d_name);
 	G_debug(3, "delete file '%s'", buf);
-	ret = unlink(buf);
+	ret = remove(buf);
 	if (ret == -1) {
 	    G_warning(_("Unable to delete file '%s'. Reason: %s"), buf, strerror(errno));
 	    closedir(dir);



More information about the grass-commit mailing list