diff options
author | Jan Synacek <jsynacek@redhat.com> | 2014-04-23 12:52:52 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2014-04-24 13:48:25 +0200 |
commit | 9cef7c103150e171e52a4422bd54c87ed88a9eec (patch) | |
tree | 9fa1d1777c77be49f797d94e5c740fbef06e4773 /src/logicalfile | |
parent | 47f3990370bf8f2cba429fce53287fa4e67ce04e (diff) | |
download | openlmi-providers-9cef7c103150e171e52a4422bd54c87ed88a9eec.tar.gz openlmi-providers-9cef7c103150e171e52a4422bd54c87ed88a9eec.tar.xz openlmi-providers-9cef7c103150e171e52a4422bd54c87ed88a9eec.zip |
logicalfile: remove unused code and add a few checks
Diffstat (limited to 'src/logicalfile')
-rw-r--r-- | src/logicalfile/LMI_UnixDirectoryProvider.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/logicalfile/LMI_UnixDirectoryProvider.c b/src/logicalfile/LMI_UnixDirectoryProvider.c index 91211c7..65a5430 100644 --- a/src/logicalfile/LMI_UnixDirectoryProvider.c +++ b/src/logicalfile/LMI_UnixDirectoryProvider.c @@ -83,10 +83,12 @@ static CMPIStatus LMI_UnixDirectoryCreateInstance( const CMPIObjectPath* cop, const CMPIInstance* ci) { - LMI_UnixDirectory lmi_ud; - LMI_UnixDirectory_InitFromInstance(&lmi_ud, _cb, ci); CMPIStatus st; CMPIObjectPath *iop = CMGetObjectPath(ci, &st); + check_status(st); + st = lmi_check_required(_cb, cc, iop); + check_status(st); + const char *path = get_string_property_from_op(iop, "Name"); if (mkdir(path, 0777) < 0) { |