Bugs item #1025387, was opened at 2004-09-09 13:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1025387&group_id=259

Category: systemimager-client
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: prepare client changes perms of /etc/hosts

Initial Comment:

When you run prepare client the program makes a copy 
of the original, adds a line to the hosts file, and then 
moves it back after the image is prepared.  The hosts 
file is written with the default umask.  In many cases 
this will change the intended permissions on /etc/hosts.

The perl code that causes this is below:

  # Put the original /etc/hosts file back (sans our 
temporary entry).
  $source      = "$file.before-prepareclient";
  $destination = $file;
  move($source, $destination) or die "FATAL: Failed to 
copy $source to $destination.\n";

A simple work around is to insert a chmod after the 
move:

chmod(0644,"$destination");

However, I am submitting this as a bug as the program 
should do this file modification in a way that does not 
affect the perms of /etc/hosts.  Or, it should check the 
perms and make sure they are correct before/after the 
copy.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1025387&group_id=259


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Sisuite-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to