summaryrefslogtreecommitdiffstats
path: root/booster/src/booster.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-11-18 01:15:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-18 21:14:08 -0800
commiteb4043706c901f8609e65c9a35463ea3f7e2c569 (patch)
tree2687d3f96a42162209a4fcb8360ade0f59124961 /booster/src/booster.c
parentc7dba5ff1468f5e56d22b47cc97ff6cd4937f98f (diff)
booster: implement getcwd.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 369 (Samba does not work with booster.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
Diffstat (limited to 'booster/src/booster.c')
-rw-r--r--booster/src/booster.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index 540fd3c2404..c8414eca9cb 100644
--- a/booster/src/booster.c
+++ b/booster/src/booster.c
@@ -2781,6 +2781,20 @@ fchdir (int fd)
}
+char *
+getcwd (char *buf, size_t size)
+{
+ char *res = NULL;
+
+ res = glusterfs_getcwd (buf, size);
+ if ((res == NULL) && (errno == ENODEV)) {
+ res = real_getcwd (buf, size);
+ }
+
+ return res;
+}
+
+
void
booster_lib_init (void)
{