[GRASS-SVN] r42738 -
grass/branches/releasebranch_6_4/general/g.access
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 9 09:27:07 EDT 2010
Author: hamish
Date: 2010-07-09 13:27:07 +0000 (Fri, 09 Jul 2010)
New Revision: 42738
Modified:
grass/branches/releasebranch_6_4/general/g.access/main.c
Log:
no chmod on MS-Windows, GPATH_MAX (partial merge from 6.5svn)
Modified: grass/branches/releasebranch_6_4/general/g.access/main.c
===================================================================
--- grass/branches/releasebranch_6_4/general/g.access/main.c 2010-07-09 13:25:23 UTC (rev 42737)
+++ grass/branches/releasebranch_6_4/general/g.access/main.c 2010-07-09 13:27:07 UTC (rev 42738)
@@ -24,7 +24,7 @@
int main(int argc, char *argv[])
{
- char path[1024];
+ char path[GPATH_MAX];
int perms; /* full mapset permissions */
int group, other; /* bool. want group/other permission */
struct Option *group_opt, *other_opt;
@@ -55,6 +55,10 @@
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
+#ifdef __MINGW32__
+ G_fatal_error(_("UNIX filesystem access controls are not supported by MS-Windows"));
+#endif
+
/* get the unix file name for the mapset directory */
G__file_name(path, "", "", G_mapset());
More information about the grass-commit
mailing list