Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 290201 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java (-3 / +3 lines)
Lines 93-106 Link Here
93
		//all known platforms with native implementation support the read only flag
93
		//all known platforms with native implementation support the read only flag
94
		attributes |= EFS.ATTRIBUTE_READ_ONLY;
94
		attributes |= EFS.ATTRIBUTE_READ_ONLY;
95
95
96
		//this must be kept in sync with the actual native implementations.
96
		// this must be kept in sync with functionality of previous libs not implementing nativeAttributes method
97
		String os = getOS();
97
		String os = getOS();
98
		String arch = System.getProperty("osgi.arch", ""); //$NON-NLS-1$ //$NON-NLS-2$
98
		String arch = System.getProperty("osgi.arch", ""); //$NON-NLS-1$ //$NON-NLS-2$
99
		if (os.equals(Constants.OS_WIN32))
99
		if (os.equals(Constants.OS_WIN32))
100
			attributes |= EFS.ATTRIBUTE_ARCHIVE | EFS.ATTRIBUTE_HIDDEN;
100
			attributes |= EFS.ATTRIBUTE_ARCHIVE | EFS.ATTRIBUTE_HIDDEN;
101
		else if (os.equals(Constants.OS_LINUX) || (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC)) || os.equals(Constants.OS_MACOSX))
101
		else if (os.equals(Constants.OS_LINUX) || (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC)))
102
			attributes |= EFS.ATTRIBUTE_EXECUTABLE | EFS.ATTRIBUTE_SYMLINK | EFS.ATTRIBUTE_LINK_TARGET;
102
			attributes |= EFS.ATTRIBUTE_EXECUTABLE | EFS.ATTRIBUTE_SYMLINK | EFS.ATTRIBUTE_LINK_TARGET;
103
		else if (os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX))
103
		else if (os.equals(Constants.OS_MACOSX) || os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX))
104
			attributes |= EFS.ATTRIBUTE_EXECUTABLE;
104
			attributes |= EFS.ATTRIBUTE_EXECUTABLE;
105
		return attributes;
105
		return attributes;
106
	}
106
	}

Return to bug 290201