--- NetworkManager-0.6.5/src/nm-device-802-11-mesh-olpc.c.bad 2008-05-09 19:11:38.000000000 -0500
+++ NetworkManager-0.6.5/src/nm-device-802-11-mesh-olpc.c 2008-05-09 19:23:07.000000000 -0500
@@ -1958,7 +1958,7 @@
iface,
MAC_ARG (mac));
- fd = open (ETC_DHCLIENT_CONF_PATH, O_RDWR | O_CREAT | O_TRUNC);
+ fd = open (ETC_DHCLIENT_CONF_PATH, O_RDWR | O_CREAT | O_TRUNC, 0644);
if (fd < 0) {
nm_warning ("Couldn't open /etc/hosts: %s", strerror (errno));
goto out;
--- NetworkManager-0.6.5/src/NetworkManager.c.bad 2008-05-09 19:21:00.000000000 -0500
+++ NetworkManager-0.6.5/src/NetworkManager.c 2008-05-09 19:22:36.000000000 -0500
@@ -163,7 +163,7 @@
write_hosts:
/* Add the new entry to the bottom */
- fd = open (ETC_HOSTS_PATH_TMP, O_RDWR | O_CREAT | O_TRUNC);
+ fd = open (ETC_HOSTS_PATH_TMP, O_RDWR | O_CREAT | O_TRUNC, 0644);
if (fd < 0) {
nm_warning ("Couldn't open /etc/hosts: %s", strerror (errno));
goto out;