also sprach Eduard Bloch <[EMAIL PROTECTED]> [2005.02.24.1743 +0100]:
> That's not true, please read the code around the creation of this file:
> 
> chmod 0640 $OPTSFILE
> chown root:dip $OPTSFILE
> 
> This follows the policy. Don't try to redefine facts please.

I am not. If you redirect into a file ($sectempfile), it gets
created according to the umask. If you the mv that file, it does
overwrite the old one with the new file, including its permissions.

> > As a consequence, dip-members cannot establish DSL connections
> > without admin intervention.
> 
> Not my problem. Your file permissions must have been set so
> before, maybe by the pppoe package where that file originaly came
> from.

No, I tried this on a clean system and verified that my patch fixes
it -- by deleting the file and trying again.

> > The problem likely stems from my 077 umask and the use of ACLs.
> > You use sed to create a new file, which you move over the old
> > one.
> 
> Ehm, so mv does loose the permissions because your ACLs are fscked
> up and I should implement a workaround in userspace?

I think you need to pick up a book on Linux permissions and umask
and read it. You are wrong. Please don't assume that everyone else
on the planet is more stupid than you are.

Try it:

  umask 077
  touch foo
  chmod 644 foo
  sed -e 's,a,b,' foo > bar
  mv bar foo

what do you think will be foo's permissions now?

> That one is valid, downgrading to minor.

The entire bug is valid. Please rethink and then change the severity
again. I will not respond to this further but will take the issue to
debian-devel if you don't rethink this.

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature

Reply via email to