Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329281 - Unused variable in UnixFileNatives
Summary: Unused variable in UnixFileNatives
Status: CLOSED DUPLICATE of bug 329245
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 13:44 EDT by John Arthorne CLA
Modified: 2010-11-03 04:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***