fetcher: uncomment code to set permissions on SSH config file

This commit is contained in:
Hylke Bons 2011-12-25 19:02:14 +01:00
parent 11745752a5
commit b391fd0a44

View file

@ -22,7 +22,7 @@ using System.Security.AccessControl;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
//using Mono.Unix; using Mono.Unix;
namespace SparkleLib { namespace SparkleLib {
@ -158,9 +158,9 @@ namespace SparkleLib {
File.WriteAllText (ssh_config_file_path, ssh_config); File.WriteAllText (ssh_config_file_path, ssh_config);
} }
//UnixFileSystemInfo file_info = new UnixFileInfo (ssh_config_file_path); UnixFileSystemInfo file_info = new UnixFileInfo (ssh_config_file_path);
//file_info.FileAccessPermissions = (FileAccessPermissions.UserRead | file_info.FileAccessPermissions = (FileAccessPermissions.UserRead |
// FileAccessPermissions.UserWrite); TODO FileAccessPermissions.UserWrite);
SparkleHelpers.DebugInfo ("Fetcher", "Disabled host key checking for " + host); SparkleHelpers.DebugInfo ("Fetcher", "Disabled host key checking for " + host);
} }
@ -209,9 +209,9 @@ namespace SparkleLib {
} else { } else {
File.WriteAllText (ssh_config_file_path, new_ssh_config.Trim ()); File.WriteAllText (ssh_config_file_path, new_ssh_config.Trim ());
//UnixFileSystemInfo file_info = new UnixFileInfo (ssh_config_file_path); UnixFileSystemInfo file_info = new UnixFileInfo (ssh_config_file_path);
//file_info.FileAccessPermissions = (FileAccessPermissions.UserRead | file_info.FileAccessPermissions = (FileAccessPermissions.UserRead |
// FileAccessPermissions.UserWrite); TODO FileAccessPermissions.UserWrite);
} }
} }