summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-10-21 03:38:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-10-21 05:11:35 -0700
commitdb61075a123008ebd94ab8ff00b984e484155654 (patch)
treec52c3a644695ccc6e6d0af260d539611f1998af2 /glusterfsd
parentcd9a247906924106c722ecf4611b7be4b5408ad9 (diff)
Solaris build: Fix linux only features
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1990 (Gluster mainline build on solaris fails with errors) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1990
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 7d7e3038e86..20f6d2a4112 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -457,7 +457,7 @@ parse_opts (int key, char *arg, struct argp_state *state)
GF_FREE (cmd_args->volfile);
if (arg[0] != '/') {
- pwd = get_current_dir_name ();
+ pwd = getcwd (NULL, 0);
snprintf (tmp_buf, 1024, "%s/%s", pwd, arg);
cmd_args->volfile = gf_strdup (tmp_buf);
free (pwd);