also sprach Eduard Bloch <[EMAIL PROTECTED]> [2005.02.25.0948 +0100]:
> Wait a moment, this still does not make sense. I set
> 
> umask 177
> 
> there so how do files created on your system get braindead
> permissions?

That's the point. 177 will ensure 600 permissions: (777 - 177
= 600). What we want are 0640 permissions though. 600 is fine for
the temporary file, but not for the final $OPTSFILE. There, we want
a 1750 umask.

Anyway, I see no real reason why you have to go via a temporary file
when sed in sarge can do in-place replacements. These do not require
new inodes and the problem becomes moot.

-- 
 .''`.     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