Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329281

Summary: Unused variable in UnixFileNatives
Product: [Eclipse Project] Platform Reporter: John Arthorne <john.arthorne>
Component: ResourcesAssignee: Pawel Pogorzelski <pawel.pogorzelski1>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pawel.pogorzelski1, Szymon.Brandys
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Arthorne CLA 2010-11-02 13:44:01 EDT
putFileInfo has the lines:

	long flags = stat.st_flags;
	flags |= UnixFileFlags.SF_IMMUTABLE;
	code |= chflags(name, UnixFileFlags.UF_IMMUTABLE);

The "flags" variable is never used for anything. Should the flags var be passed to the chflags method?
Comment 1 Pawel Pogorzelski CLA 2010-11-02 16:56:25 EDT
It should. I'll provide a fix along with a test shortly.
Comment 2 Szymon Brandys CLA 2010-11-03 04:32:37 EDT

*** This bug has been marked as a duplicate of bug 329245 ***