summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-20 16:47:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-20 16:47:54 +0000
commit8d4f29d3024c328c892b37f7b7db27fbde022e51 (patch)
tree9fecf82f3b70fbb954dfdea8cf9ab4291e2ecf62 /src/OptionHandlerFactory.cc
parent3636345a25646c407b07af7679f37a2f8708e1e9 (diff)
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
The default value of --dir option is the absolute path to the current directory. If getcwd() is failed, then it is ".", which is the same value with old implementation. This change is necessary because after daemon() call, the current working directory is changed to /. * src/File.cc * src/File.h * src/OptionHandlerFactory.cc * src/option_processing.cc
Diffstat (limited to 'src/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index c63905ad..b55c8941 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -141,7 +141,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
SharedHandle<OptionHandler> op(new DefaultOptionHandler
(PREF_DIR,
TEXT_DIR,
- ".",
+ File::getCurrentDir(),
A2STR::NIL,
OptionHandler::REQ_ARG,
'd'));