You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2009/02/24 20:04:44 UTC
svn commit: r747510 -
/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Author: hindessm
Date: Tue Feb 24 19:04:43 2009
New Revision: 747510
URL: http://svn.apache.org/viewvc?rev=747510&view=rev
Log:
This is C not C++ so declarations must come before code or some compilers
will (rightly) complain.
Modified:
harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c?rev=747510&r1=747509&r2=747510&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c (original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c Tue Feb 24 19:04:43 2009
@@ -920,13 +920,12 @@
{
I_32 result;
struct stat buffer;
+ PORT_ACCESS_FROM_ENV (env);
result = stat (path, &buffer);
if (result == -1)
return 0;
- PORT_ACCESS_FROM_ENV (env);
-
//if the current user is 'root', then the file is executable when
//either of user/group/others has the permission to execute.
// and the directory is always executable.