[GRASS-SVN] r50568 - grass/trunk/general/g.list
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 30 15:15:37 EST 2012
Author: hamish
Date: 2012-01-30 12:15:37 -0800 (Mon, 30 Jan 2012)
New Revision: 50568
Modified:
grass/trunk/general/g.list/main.c
Log:
unistd.h defines X_OK as '1'
Modified: grass/trunk/general/g.list/main.c
===================================================================
--- grass/trunk/general/g.list/main.c 2012-01-30 20:10:37 UTC (rev 50567)
+++ grass/trunk/general/g.list/main.c 2012-01-30 20:15:37 UTC (rev 50568)
@@ -80,7 +80,7 @@
M_get_list(n)->element[0]);
G_debug(3, "lister CMD: %s", lister);
}
- if (n > -1 && access(lister, 1) == 0) /* execute permission? */
+ if (n > -1 && access(lister, X_OK) == 0) /* execute permission */
G_spawn(lister, lister, mapset, NULL);
else
M_do_list(n, mapset);
More information about the grass-commit
mailing list