bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm feature request


From: Ulrich Drepper
Subject: Re: rm feature request
Date: 12 Feb 2001 09:17:22 -0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)

address@hidden (Ian Lynagh) writes:

> /* Make target directory u+rwx if it isn't already */
> if ((!(fs->mode & S_IRUSR) || !(fs->mode & S_IWUSR) || !(fs->mode & S_IXUSR))
>         && !x->interactive)
>   /* We don't care about errors here, let them get caught below */
>   chmod (dir_name, fs->mode | S_IRUSR | S_IWUSR | S_IXUSR);
> 
> before trying to chdir but Jim Meyering said that this went against
> history and standards.

It is both and it is something you can implement with other means.  I
don't think it's a good idea to add yet another option which when used
can surprise people.  For the same reason you use chmod 0 others might
do but they do *not* want to see their data being removed.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]