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/branches/branch-2@1372678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2012-08-14 00:05:42 +00:00
parent 710c4e5906
commit 080455d1cc
2 changed files with 5 additions and 2 deletions

View File

@ -431,6 +431,9 @@ Release 2.0.1-alpha - UNRELEASED
HDFS-2330. In NNStorage.java, IOExceptions of stream closures can mask HDFS-2330. In NNStorage.java, IOExceptions of stream closures can mask
root exceptions. (umamahesh via todd) root exceptions. (umamahesh via todd)
HDFS-3790. test_fuse_dfs.c doesn't compile on centos 5. (Colin Patrick
McCabe via atm)
BREAKDOWN OF HDFS-3042 SUBTASKS BREAKDOWN OF HDFS-3042 SUBTASKS
HDFS-2185. HDFS portion of ZK-based FailoverController (todd) HDFS-2185. HDFS portion of ZK-based FailoverController (todd)

View File

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