Mailing List Archive

quick env-update Q
just to make sure before i do this, if i havnt edited any config files
yet, is it safe to let env-update do its thing? or could it possibly
break something still?

nick

--
gentoo-user@gentoo.org mailing list
Re: quick env-update Q [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick Smith wrote:
| just to make sure before i do this, if i havnt edited any config files
| yet, is it safe to let env-update do its thing? or could it possibly
| break something still?
|
| nick

A little strace output reveals your answer:

# strace -e trace=file -o strace.out env-update
# grep /etc strace.out | grep O_WR
open("//etc/profile.env", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
open("//etc/csh.env", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3

As you can see, only those two environment files are opened for writing, which
shouldn't be manually editied anyways. Long story short, you should be just fine.

HTH
- --
You have a strong appeal for members of the opposite sex.

Aaron Walker - Gentoo Developer [ Gentoo/BSD / cron / shell-tools ]
ka0ttic@gentoo.org http://dev.gentoo.org/~ka0ttic/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBdmKtC3poscuANHARAulfAKCVXdX4tF/DFjYkKovBuE7dJ7RTwwCfSbko
ucJ1aLg0AxSnGmjUu1ImoAA=
=yVHu
-----END PGP SIGNATURE-----

--
gentoo-user@gentoo.org mailing list