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-2d8eab27ff7cmaster
MkDir(SnfSnifferDirName); | 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); | Copy(SnfSnifferSampleFileName, SnfSnifferFileName); | ||||
SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); | SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); |
MkDir(SnfSnifferDirName); | 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); | Copy(SnfSnifferSampleFileName, SnfSnifferFileName); | ||||
SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); | SetMode(SnfSnifferFileName, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); |