From eb4043706c901f8609e65c9a35463ea3f7e2c569 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 18 Nov 2009 01:15:46 +0000 Subject: booster: implement getcwd. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 369 (Samba does not work with booster.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369 --- booster/src/booster.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'booster') diff --git a/booster/src/booster.c b/booster/src/booster.c index 540fd3c24..c8414eca9 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) { -- cgit