summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2015-03-03 23:29:51 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2015-03-03 23:29:51 +0000
commitddad37b43d5105132274139a7555f343237cfd58 (patch)
tree3718d894065e9d5407ce3a0f404cc8d2e057d7e5 /usr/src
parent1635185ccd6c3f4b285b01002a59654ca52cafec (diff)
downloadillumos-joyent-ddad37b43d5105132274139a7555f343237cfd58.tar.gz
OS-3980 'ls /etc/init.d' fails on centos 6.6 image
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/brand/lx/lx_brand/common/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/brand/lx/lx_brand/common/open.c b/usr/src/lib/brand/lx/lx_brand/common/open.c
index 0a643bf3ad..2306a7bedf 100644
--- a/usr/src/lib/brand/lx/lx_brand/common/open.c
+++ b/usr/src/lib/brand/lx/lx_brand/common/open.c
@@ -22,7 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- * Copyright 2014 Joyent, Inc. All rights reserved.
+ * Copyright 2015 Joyent, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -180,7 +180,7 @@ lx_open(uintptr_t p1, uintptr_t p2, uintptr_t p3)
if (p2 & LX_O_DIRECTORY) {
struct stat64 statbuf;
- if (lstat64(path, &statbuf) < 0) {
+ if (stat64(path, &statbuf) < 0) {
return (-errno);
}