diff options
author | Jan Synacek <jsynacek@redhat.com> | 2013-09-06 13:10:29 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2013-09-06 15:06:55 +0200 |
commit | e3db726720562b67a07f70dec858ef9a6f946d97 (patch) | |
tree | ca64ed417f1fad4951684a8bf533fa5b5f9d6061 /src/logicalfile | |
parent | 84121afbc9c1f81e3c67933c92a6b88c8b46d6ba (diff) | |
download | openlmi-providers-e3db726720562b67a07f70dec858ef9a6f946d97.tar.gz openlmi-providers-e3db726720562b67a07f70dec858ef9a6f946d97.tar.xz openlmi-providers-e3db726720562b67a07f70dec858ef9a6f946d97.zip |
logicalfile: use lstat(2) instead of stat(2)
Diffstat (limited to 'src/logicalfile')
-rw-r--r-- | src/logicalfile/LMI_UnixFileProvider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logicalfile/LMI_UnixFileProvider.c b/src/logicalfile/LMI_UnixFileProvider.c index 97f651e..82a6479 100644 --- a/src/logicalfile/LMI_UnixFileProvider.c +++ b/src/logicalfile/LMI_UnixFileProvider.c @@ -117,7 +117,7 @@ static CMPIStatus LMI_UnixFileGetInstance( LMI_UnixFile_InitFromObjectPath(&lmi_file, _cb, cop); path = KChars(lmi_file.LFName.value); - if (stat(path, &sb) < 0) { + if (lstat(path, &sb) < 0) { snprintf(aux, BUFLEN, "Can't stat file: %s", path); CMReturnWithChars(_cb, CMPI_RC_ERR_NOT_FOUND, aux); } |