Skip to content

Commit

Permalink
Renamed /SaveSecurity To /BackupSecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
NoMoreFood committed Jan 28, 2017
1 parent c949633 commit 5017971
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions OperationSaveSecurity.cpp → OperationBackupSecurity.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "OperationSaveSecurity.h"
#include "OperationBackupSecurity.h"
#include "InputOutput.h"
#include "Functions.h"

ClassFactory<OperationSaveSecurity> * OperationSaveSecurity::RegisteredFactory =
new ClassFactory<OperationSaveSecurity>(GetCommand());
ClassFactory<OperationBackupSecurity> * OperationBackupSecurity::RegisteredFactory =
new ClassFactory<OperationBackupSecurity>(GetCommand());

OperationSaveSecurity::OperationSaveSecurity(std::queue<std::wstring> & oArgList) : Operation(oArgList)
OperationBackupSecurity::OperationBackupSecurity(std::queue<std::wstring> & oArgList) : Operation(oArgList)
{
// exit if there are not enough arguments to part
std::vector<std::wstring> sSubArgs = ProcessAndCheckArgs(1, oArgList, L"\\0");
Expand Down Expand Up @@ -39,7 +39,7 @@ OperationSaveSecurity::OperationSaveSecurity(std::queue<std::wstring> & oArgList
AppliesToGroup = true;
}

bool OperationSaveSecurity::ProcessSdAction(std::wstring & sFileName, ObjectEntry & tObjectEntry, PSECURITY_DESCRIPTOR & tDescriptor, bool & bDescReplacement)
bool OperationBackupSecurity::ProcessSdAction(std::wstring & sFileName, ObjectEntry & tObjectEntry, PSECURITY_DESCRIPTOR & tDescriptor, bool & bDescReplacement)
{
// convert the current security descriptor to a string
WCHAR * sInfo = NULL;
Expand Down
8 changes: 4 additions & 4 deletions OperationSaveSecurity.h → OperationBackupSecurity.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#include "Operation.h"

class OperationSaveSecurity : public Operation
class OperationBackupSecurity : public Operation
{
private:

// statics used by command registration utility
static std::wstring GetCommand() { return L"SaveSecurity"; }
static ClassFactory<OperationSaveSecurity> * RegisteredFactory;
static std::wstring GetCommand() { return L"BackupSecurity"; }
static ClassFactory<OperationBackupSecurity> * RegisteredFactory;

HANDLE hFile = INVALID_HANDLE_VALUE;
std::wstring sFile = L"";
Expand All @@ -19,6 +19,6 @@ class OperationSaveSecurity : public Operation
bool ProcessSdAction(std::wstring & sFileName, ObjectEntry & tObjectEntry, PSECURITY_DESCRIPTOR & tDescriptor, bool & bDescReplacement) override;

// constructors
OperationSaveSecurity(std::queue<std::wstring> & oArgList);
OperationBackupSecurity(std::queue<std::wstring> & oArgList);
};

4 changes: 2 additions & 2 deletions OperationHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ Commands That Do Not Alter Security
it is recommended to inspect the ACL with icacls.exe or Windows Explorer
to ensure the ACL is not corrupted in a more significant way.
/SaveSecurity <FileName>
/BackupSecurity <FileName>
Export the security descriptor to the file specified. The file is
outputted in the format of file|descriptor on each line. The security
descriptor is formatted as specified in the documentation for
ConvertDescriptorToStringSecurityDescriptor(). This command does
not print informational messages other than errors.
/RestoreSecurity <FileName>
The reverse operation of /SaveSecurity. Takes the file name and security
The reverse operation of /BackupSecurity. Takes the file name and security
descriptors specified in the file specified and applies them to the file
system. This command does not print informational messages other than
errors.
Expand Down
4 changes: 2 additions & 2 deletions repacls.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<ClCompile Include="OperationCompact.cpp" />
<ClCompile Include="OperationCopyDomain.cpp" />
<ClCompile Include="OperationDomainPaths.cpp" />
<ClCompile Include="OperationSaveSecurity.cpp" />
<ClCompile Include="OperationBackupSecurity.cpp" />
<ClCompile Include="OperationFindAccount.cpp" />
<ClCompile Include="OperationFindDomain.cpp" />
<ClCompile Include="OperationFindNullAcl.cpp" />
Expand Down Expand Up @@ -224,7 +224,7 @@
<ClInclude Include="OperationAddAccountIfMissing.h" />
<ClInclude Include="OperationCheckCanonical.h" />
<ClInclude Include="OperationCompact.h" />
<ClInclude Include="OperationSaveSecurity.h" />
<ClInclude Include="OperationBackupSecurity.h" />
<ClInclude Include="OperationFactory.h" />
<ClInclude Include="OperationFindAccount.h" />
<ClInclude Include="Operation.h" />
Expand Down
8 changes: 4 additions & 4 deletions repacls.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
<ClCompile Include="OperationMoveDomain.cpp">
<Filter>Source\Operations</Filter>
</ClCompile>
<ClCompile Include="OperationSaveSecurity.cpp">
<ClCompile Include="OperationRestoreSecurity.cpp">
<Filter>Source\Operations</Filter>
</ClCompile>
<ClCompile Include="OperationRestoreSecurity.cpp">
<ClCompile Include="OperationBackupSecurity.cpp">
<Filter>Source\Operations</Filter>
</ClCompile>
</ItemGroup>
Expand Down Expand Up @@ -198,10 +198,10 @@
<ClInclude Include="OperationMoveDomain.h">
<Filter>Includes\Operations</Filter>
</ClInclude>
<ClInclude Include="OperationSaveSecurity.h">
<ClInclude Include="OperationRestoreSecurity.h">
<Filter>Includes\Operations</Filter>
</ClInclude>
<ClInclude Include="OperationRestoreSecurity.h">
<ClInclude Include="OperationBackupSecurity.h">
<Filter>Includes\Operations</Filter>
</ClInclude>
</ItemGroup>
Expand Down

0 comments on commit 5017971

Please sign in to comment.