2012-03-02 Koichiro Kikuchi <koichiro@rworks.jp>
* pandora_agent: Fixed bug of my previous commit (removed "qw"). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5688 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4c85b5256b
commit
029b45f9c1
|
@ -1,3 +1,7 @@
|
|||
2012-03-02 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||
|
||||
* pandora_agent: Fixed bug of my previous commit (removed "qw").
|
||||
|
||||
2012-03-01 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||
|
||||
* pandora_agent: Added symlink checks for temporary files before writing
|
||||
|
|
|
@ -764,7 +764,7 @@ sub check_remote_config () {
|
|||
close (CONF_FILE);
|
||||
|
||||
# Remove temporary files if they exist as symlink to avoid symlink attack
|
||||
for my $file (qw("$Conf{'temporal'}/$RemoteMD5File" "$Conf{'temporal'}/$RemoteConfFile")) {
|
||||
for my $file ("$Conf{'temporal'}/$RemoteMD5File", "$Conf{'temporal'}/$RemoteConfFile") {
|
||||
error ("File '$file' already exists as a symlink and could not be removed: $!") if (-l $file && ! unlink($file));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue