cmatthew / Lind-misc

Misc files for the Lind project
3 stars 3 forks source link

chmod needs to obey file 'type' (i.e. dir, device, etc.) #63

Closed JustinCappos closed 11 years ago

JustinCappos commented 11 years ago

chmod assumes that whatever it is called on is a file. If it's a dir (for example), then it changes the fs metadata to say it's a file afterward, regardless. This is obviously flawed.

cmatthew commented 11 years ago

I think this should be high priority. This could break app's file systems which trigger it.

On 2013-02-28, at 10:14 AM, JustinCappos notifications@github.com wrote:

chmod assumes that whatever it is called on is a file. If it's a dir (for example), then it changes the fs metadata to say it's a file afterward, regardless. This is obviously flawed.

— Reply to this email directly or view it on GitHub.

JustinCappos commented 11 years ago

Fixed in Seattle commit r6427. (let's sync this over.)