diff options
Diffstat (limited to 'xlators/protocol/server/src/server-helpers.c')
| -rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index 0971e84298c..bcd1fed8b84 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -12,6 +12,7 @@  #include "server-helpers.h"  #include "gidcache.h"  #include "server-messages.h" +#include "syscall.h"  #include <fnmatch.h>  #include <pwd.h> @@ -556,7 +557,7 @@ server_build_config (xlator_t *this, server_conf_t *conf)          if (data) {                  /* Check whether the specified directory exists,                     or directory specified is non standard */ -                ret = stat (data->data, &buf); +                ret = sys_stat (data->data, &buf);                  if ((ret != 0) || !S_ISDIR (buf.st_mode)) {                          gf_msg (this->name, GF_LOG_ERROR, 0,                                  PS_MSG_DIR_NOT_FOUND, "Directory '%s' doesn't "  | 
