{
// change owner and groups for generated ni file.
struct stat info;
- if (!stat(path, &info)) {
- if (chown(ni.c_str(), info.st_uid, info.st_gid) == -1) {
+ if (!stat(path, &info))
+ {
+ if (chown(ni.c_str(), info.st_uid, info.st_gid) == -1)
+ {
_ERR("Failed to change owner and group name");
}
}