HDFS-3790. test_fuse_dfs.c doesn't compile on centos 5. Contributed by Colin Patrick McCabe.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1372676 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2012-08-14 00:04:55 +00:00
parent c959c1ac75
commit 4139298b61
2 changed files with 5 additions and 2 deletions

View File

@ -587,6 +587,9 @@ Branch-2 ( Unreleased changes )
IOExceptions of stream closures can mask root exceptions. (Uma Maheswara
Rao G via szetszwo)
HDFS-3790. test_fuse_dfs.c doesn't compile on centos 5. (Colin Patrick
McCabe via atm)
BREAKDOWN OF HDFS-3042 SUBTASKS
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)

View File

@ -75,7 +75,7 @@ static int fuserMount(int *procRet, ...)
{
int ret, status;
size_t i = 0;
char *args[64], *c, *env[] = { NULL };
char *args[64], *c;
va_list ap;
pid_t pid, pret;
@ -99,7 +99,7 @@ static int fuserMount(int *procRet, ...)
ret, strerror(ret));
return -ret;
} else if (pid == 0) {
if (execvpe("fusermount", args, env)) {
if (execvp("fusermount", args)) {
ret = errno;
fprintf(stderr, "FUSE_TEST: failed to execute fusermount: "
"error %d: %s\n", ret, strerror(ret));