|
From: | Bob Proulx |
Subject: | Re: [bug-gawk] gawk - 'inplace' feature ignores file's access flags (read-only) |
Date: | Tue, 16 Jun 2015 12:59:54 -0600 |
User-agent: | Mutt/1.5.23 (2014-03-12) |
Eli Zaretskii wrote: > Bob Proulx wrote: > > This is one of those common pitfalls that people often fall into. It > > is a misconception to think that permissions on a file prevent the > > file from being removed. It does not. If one wishes to prevent a > > file being removed then it is the permissions on the directory holding > > the file that either allow or prevent it. > > On Unix, yes. But people coming from Windows expect that a read-only > file cannot be deleted -- you get an "Access denied" error. If that is the way it works in MS-Windows then it just reinforces that it is a common trap that people will often fall into. Since it doesn't work that way on Unix-like systems. Bob
[Prev in Thread] | Current Thread | [Next in Thread] |