[sheepdog] [PATCH] sheep: pass real path for lock_and_daemon()
Liu Yuan
namei.unix at gmail.com
Fri May 3 08:10:43 CEST 2013
From: Liu Yuan <tailai.ly at taobao.com>
This fix a fatal bug that can't start sheep with relative path for store
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
sheep/sheep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/sheep.c b/sheep/sheep.c
index 1ae0c2a..a7e3820 100644
--- a/sheep/sheep.c
+++ b/sheep/sheep.c
@@ -641,7 +641,7 @@ int main(int argc, char **argv)
srandom(port);
- if (lock_and_daemon(is_daemon, dirp))
+ if (lock_and_daemon(is_daemon, dir))
exit(1);
ret = log_init(program_name, LOG_SPACE_SIZE, to_stdout, log_level,
--
1.7.9.5
More information about the sheepdog
mailing list