diff options
-rw-r--r-- | openlmi-providers.spec | 1 | ||||
-rw-r--r-- | src/logicalfile/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/logicalfile/LMI_UnixDirectoryProvider.c | 2 | ||||
-rwxr-xr-x | src/logicalfile/cmpiLMI_LogicalFile-cimprovagt | 21 |
4 files changed, 25 insertions, 1 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec index e0ca2a3..229b364 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -285,6 +285,7 @@ cp mof/LMI_Software.reg $RPM_BUILD_ROOT/%{_datadir}/%{name}/ %{_libdir}/cmpi/libcmpiLMI_LogicalFile.so %{_datadir}/%{name}/60_LMI_LogicalFile.mof %{_datadir}/%{name}/60_LMI_LogicalFile.reg +%attr(755, root, root) %{_libexecdir}/pegasus/cmpiLMI_LogicalFile-cimprovagt %files -n openlmi-realmd %doc README COPYING diff --git a/src/logicalfile/CMakeLists.txt b/src/logicalfile/CMakeLists.txt index 3a80353..7f3c05d 100644 --- a/src/logicalfile/CMakeLists.txt +++ b/src/logicalfile/CMakeLists.txt @@ -2,6 +2,7 @@ set(PROVIDER_NAME LogicalFile) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) set(MOF 60_LMI_LogicalFile.mof) +set(CIMPROVAGT_SCRIPT cmpiLMI_${PROVIDER_NAME}-cimprovagt) set(provider_SRCS file.c @@ -27,3 +28,4 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} ${L cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi) +install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus) diff --git a/src/logicalfile/LMI_UnixDirectoryProvider.c b/src/logicalfile/LMI_UnixDirectoryProvider.c index 6483c43..2628982 100644 --- a/src/logicalfile/LMI_UnixDirectoryProvider.c +++ b/src/logicalfile/LMI_UnixDirectoryProvider.c @@ -113,7 +113,7 @@ static CMPIStatus LMI_UnixDirectoryDeleteInstance( if (rmdir(path) < 0) { char errmsg[BUFLEN]; - snprintf(errmsg, BUFLEN, "Can't mkdir: %s (%s)", path, strerror(errno)); + snprintf(errmsg, BUFLEN, "Can't rmdir: %s (%s)", path, strerror(errno)); CMReturnWithChars(_cb, CMPI_RC_ERR_FAILED, errmsg); } diff --git a/src/logicalfile/cmpiLMI_LogicalFile-cimprovagt b/src/logicalfile/cmpiLMI_LogicalFile-cimprovagt new file mode 100755 index 0000000..f6c8842 --- /dev/null +++ b/src/logicalfile/cmpiLMI_LogicalFile-cimprovagt @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Copyright (C) 2013 Red Hat, Inc. All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# Authors: Jan Synacek <jsynacek@redhat.com> + +/usr/libexec/pegasus/cimprovagt "$@" |