--- si_netbootmond.orig 2005-07-12 16:51:47.245989254 -0400
+++ si_netbootmond      2005-07-12 16:51:23.834406358 -0400
@@ -124,6 +124,7 @@
     #print "ip_hex: $ip_hex\n";

     unlink("$pxe_conf_dir/$ip_hex");
+    umask(0022);
     copy("$syslinux_cfg_localboot", "$pxe_conf_dir/$ip_hex");
 }
 #


This achieves two goals: atomic copy & permission setting, and proper
permissions on resulting files (the original purpose of this e-mail thread).

Dan W.


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to