summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2013-07-17 11:05:27 +0200
committerJan Synacek <jsynacek@redhat.com>2013-07-17 13:47:42 +0200
commit7ab308dcbe9f9631e7b2fd276236df664b666702 (patch)
tree21a00d89212a7ce9278f7bcb511a5563e3bdca63
parent9d4a87a00329a8a1b84f8cc6ddfe02c87e9b7a18 (diff)
downloadopenlmi-providers-7ab308dcbe9f9631e7b2fd276236df664b666702.tar.gz
openlmi-providers-7ab308dcbe9f9631e7b2fd276236df664b666702.tar.xz
openlmi-providers-7ab308dcbe9f9631e7b2fd276236df664b666702.zip
LogicalFile: set LMI_UnixFile.Name
The property is not mandatory, but it's nice to have it consistent with other LMI file classes that are derived from CIM_LogicalFile.
-rw-r--r--src/logicalfile/LMI_UnixFileProvider.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logicalfile/LMI_UnixFileProvider.c b/src/logicalfile/LMI_UnixFileProvider.c
index ff9423b..97f651e 100644
--- a/src/logicalfile/LMI_UnixFileProvider.c
+++ b/src/logicalfile/LMI_UnixFileProvider.c
@@ -121,6 +121,7 @@ static CMPIStatus LMI_UnixFileGetInstance(
snprintf(aux, BUFLEN, "Can't stat file: %s", path);
CMReturnWithChars(_cb, CMPI_RC_ERR_NOT_FOUND, aux);
}
+ LMI_UnixFile_Set_Name(&lmi_file, path);
sprintf(aux, "%u", sb.st_uid);
LMI_UnixFile_Set_UserID(&lmi_file, aux);
sprintf(aux, "%u", sb.st_gid);