Ignore:
Timestamp:
1/11/2010 2:44:04 AM (2 years ago)
Author:
lowjoel
Message:

-Check whether System Restore is enabled when the unused space erasure is run -- this will warn users to ensure that the erasure does indeed get rid of all traces of their files.
-Add periods at the end of error messages for consistency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Manager/DirectExecutor.cs

    r1440 r1496  
    507507                else 
    508508                    throw new UnauthorizedAccessException(S._("The program does not have the " + 
    509                         "required permissions to erase the unused space on disk")); 
    510             } 
    511  
     509                        "required permissions to erase the unused space on disk.")); 
     510            } 
     511 
     512            //Check whether System Restore has any available checkpoints. 
     513            if (SystemRestore.GetInstances().Count != 0) 
     514            { 
     515                task.Log.LastSessionEntries.Add(new LogEntry(S._("The drive {0} has System " + 
     516                    "Restore or Volume Shadow Copies enabled. This may allow copies of files " + 
     517                    "stored on the disk to be recovered and pose a security concern.", 
     518                    target.Drive), LogLevel.Warning)); 
     519            } 
     520             
    512521            //If the user is under disk quotas, log a warning message 
    513522            if (VolumeInfo.FromMountpoint(target.Drive).HasQuota) 
    514                 task.Log.LastSessionEntries.Add(new LogEntry(S._("The drive which is having its " + 
    515                     "unused space erased has disk quotas active. This will prevent the complete " + 
    516                     "erasure of unused space and will pose a security concern"), LogLevel.Warning)); 
     523                task.Log.LastSessionEntries.Add(new LogEntry(S._("The drive {0} has disk quotas " + 
     524                    "active. This will prevent the complete erasure of unused space and may pose " + 
     525                    "a security concern.", target.Drive), LogLevel.Warning)); 
    517526 
    518527            //Get the erasure method if the user specified he wants the default. 
Note: See TracChangeset for help on using the changeset viewer.