瀏覽代碼

Change permission and owner:group of SnfSnifferDirName only when

creating SnfSnifferDirName.  Reason:  SnfSnifferDirName could be
a system directory (e.g. "/usr/sbin"), and the permission and
owner:group of system directories should not be changed.


git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@65 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
master
adeniz 10 年之前
父節點
當前提交
51701b2eb0
共有 2 個檔案被更改,包括 6 行新增6 行删除
  1. 3
    3
      SNFServerConfig/PostfixIntegrate.cpp
  2. 3
    3
      SNFServerConfig/SendmailIntegrate.cpp

+ 3
- 3
SNFServerConfig/PostfixIntegrate.cpp 查看文件

@@ -165,10 +165,10 @@ PostfixIntegrate::Integrate(FileBackup *SaveFile) {
MkDir(SnfSnifferDirName);
}
SetMode(SnfSnifferDirName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
SetOwnerGroup(SnfSnifferDirName);
SetMode(SnfSnifferDirName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
SetOwnerGroup(SnfSnifferDirName);
}
Copy(SnfSnifferSampleFileName, SnfSnifferFileName);
SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);

+ 3
- 3
SNFServerConfig/SendmailIntegrate.cpp 查看文件

@@ -159,10 +159,10 @@ SendmailIntegrate::Integrate(FileBackup *SaveFile) {
MkDir(SnfSnifferDirName);
}
SetMode(SnfSnifferDirName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
SetOwnerGroup(SnfSnifferDirName);
SetMode(SnfSnifferDirName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
SetOwnerGroup(SnfSnifferDirName);
}
Copy(SnfSnifferSampleFileName, SnfSnifferFileName);
SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);

Loading…
取消
儲存