Changeset 1496


Ignore:
Timestamp:
01/11/10 02:44:04 (5 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.

Location:
trunk/eraser6
Files:
1 added
6 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. 
  • trunk/eraser6/Eraser.Manager/Strings.en.resx

    r1319 r1496  
    124124    <value>The program does not have the required permissions to erase the unused space on disk. Run the program as an administrator and retry the operation.</value> 
    125125  </data> 
    126   <data name="The program does not have the required permissions to erase the unused space on disk" xml:space="preserve"> 
    127     <value>The program does not have the required permissions to erase the unused space on disk</value> 
    128   </data> 
    129   <data name="The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern" xml:space="preserve"> 
    130     <value>The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern</value> 
     126  <data name="The program does not have the required permissions to erase the unused space on disk." xml:space="preserve"> 
     127    <value>The program does not have the required permissions to erase the unused space on disk.</value> 
     128  </data> 
     129  <data name="The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern." xml:space="preserve"> 
     130    <value>The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern.</value> 
     131  </data> 
     132  <data name="The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern." xml:space="preserve"> 
     133    <value>The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern.</value> 
    131134  </data> 
    132135  <data name="Searching for files' cluster tips..." xml:space="preserve"> 
  • trunk/eraser6/Eraser.Manager/Strings.it.resx

    r1345 r1496  
    124124    <value>Il programma non ha i permessi richiesti per pulire lo spazio non utilizzato sul disco. Eseguire il programma come amministratore e riprovare l'operazione</value> 
    125125  </data> 
    126   <data name="The program does not have the required permissions to erase the unused space on disk" xml:space="preserve"> 
    127     <value>Il programma non ha i permessi richiesti per pulire lo spazio non utilizzato sul disco</value> 
    128   </data> 
    129   <data name="The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern" xml:space="preserve"> 
    130     <value>Il disco di cui deve essere pulito lo spazio libero ha abilitato il "disk quota". Ciò impedisce la pulizia completa dello spazio libero e può determinare problemi di sicurezza</value> 
     126  <data name="The program does not have the required permissions to erase the unused space on disk." xml:space="preserve"> 
     127    <value>(Untranslated)</value> 
     128  </data> 
     129  <data name="The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern." xml:space="preserve"> 
     130    <value>(Untranslated)</value> 
     131  </data> 
     132  <data name="The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern." xml:space="preserve"> 
     133    <value>(Untranslated)</value> 
    131134  </data> 
    132135  <data name="Searching for files' cluster tips..." xml:space="preserve"> 
  • trunk/eraser6/Eraser.Manager/Strings.nl.resx

    r1319 r1496  
    124124    <value>(Untranslated)</value> 
    125125  </data> 
    126   <data name="The program does not have the required permissions to erase the unused space on disk" xml:space="preserve"> 
    127     <value>(Untranslated)</value> 
    128   </data> 
    129   <data name="The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern" xml:space="preserve"> 
     126  <data name="The program does not have the required permissions to erase the unused space on disk." xml:space="preserve"> 
     127    <value>(Untranslated)</value> 
     128  </data> 
     129  <data name="The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern." xml:space="preserve"> 
     130    <value>(Untranslated)</value> 
     131  </data> 
     132  <data name="The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern." xml:space="preserve"> 
    130133    <value>(Untranslated)</value> 
    131134  </data> 
  • trunk/eraser6/Eraser.Manager/Strings.resx

    r1319 r1496  
    124124    <value>The program does not have the required permissions to erase the unused space on disk. Run the program as an administrator and retry the operation.</value> 
    125125  </data> 
    126   <data name="The program does not have the required permissions to erase the unused space on disk" xml:space="preserve"> 
    127     <value>The program does not have the required permissions to erase the unused space on disk</value> 
    128   </data> 
    129   <data name="The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern" xml:space="preserve"> 
    130     <value>The drive which is having its unused space erased has disk quotas active. This will prevent the complete erasure of unused space and will pose a security concern</value> 
     126  <data name="The program does not have the required permissions to erase the unused space on disk." xml:space="preserve"> 
     127    <value>The program does not have the required permissions to erase the unused space on disk.</value> 
     128  </data> 
     129  <data name="The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern." xml:space="preserve"> 
     130    <value>The drive {0} has System Restore or Volume Shadow Copies enabled. This may allow copies of files stored on the disk to be recovered and pose a security concern.</value> 
     131  </data> 
     132  <data name="The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern." xml:space="preserve"> 
     133    <value>The drive {0} has disk quotas active. This will prevent the complete erasure of unused space and may pose a security concern.</value> 
    131134  </data> 
    132135  <data name="Searching for files' cluster tips..." xml:space="preserve"> 
  • trunk/eraser6/Eraser.Util/Eraser.Util.csproj

    r1334 r1496  
    4141    <Reference Include="System.Data" /> 
    4242    <Reference Include="System.Drawing" /> 
     43    <Reference Include="System.Management" /> 
    4344    <Reference Include="System.Windows.Forms" /> 
    4445    <Reference Include="System.Xml" /> 
     
    5354    <Compile Include="NtfsApi.cs" /> 
    5455    <Compile Include="ShellApi.cs" /> 
     56    <Compile Include="SystemRestoreApi.cs"> 
     57      <SubType>Component</SubType> 
     58    </Compile> 
    5559    <Compile Include="StreamInfo.cs" /> 
    5660    <Compile Include="KernelApi.cs" /> 
Note: See TracChangeset for help on using the changeset viewer.