Doesn't this introduce a race condition where the key has been updated first and then the file protected? If I understand the code paths correctly, moving the key line up one spot in the table's list should solve this race.
-- [network-admin] WEP key stored in world-readable /etc/network/interfaces https://launchpad.net/bugs/14392 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs