3 ms·
If this directory is special, why doesn't Windows treat it that way? Put something in the EA that means "This file can't be read/modified by normal programs" so
by MBCook 10y ago
If this directory is special, why doesn't Windows treat it that way? Put something in the EA that means "This file can't be read/modified by normal programs" so people can't make the mistake in the first place.
Obviously making it so programs can modify these files successfully would be great, but that's a much bigger job.
- nxc18 10y agoIt is marked special. You have to go out of your way to even see it, and Windows Explorer complains and gives you a stern warning when you do.
- MBCook 10y agoAs someone who hasn't used Windows in 15 years... I didn't know that. I'm glad I got down voted to find out. Either way, once you get to it, couldn't the filesystem APIs treat it read-only and prevents someone from making these kind of mistakes in the first place?
- wvenable 10y agoThat's a lot of exceptional cases for something you shouldn't touch. It's kind of like saying, if I'm root and I've disabled "--preserve-root" and then I "rm * /", that Linux should have something else to prevent the user from hosing their own system. I mean they could do that, but where do you draw the line?
- wvenable 10y agoYou can also delete your entire C:\Windows folder and on Linux you can delete /sbin -- same permissions apply.