diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-05-22 16:55:56 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-05-22 16:55:56 +0000 |
| commit | 8eeeac71928919fa5e4fb0c1c389fa229637bea3 (patch) | |
| tree | 22f3749ff27920644a925427ea7d5b0deef7b135 /src/File.cc | |
| parent | ad7078db28a19c5206bd7c9a2d9c00c725b40354 (diff) | |
2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Change file mode to 666:
* src/common.h (OPEN_MODE): New definition.
* src/File.cc
* src/Util.cc
* src/Directry.cc
* src/AbstractDiskWriter.cc
Change the level of log message "download aborted" to debug:
* src/PeerAbstractCommand.cc (execute)
* src/RequestGroup.h (RequestGroup): Initialized
_hintTotalLength to 0.
* src/TrackerWatcherCommand.cc
(createCommand): Sleep some seconds after request failed.
If tracker request fails more than value of
PREF_TRACKER_MAX_TRIES,
then abort tracker request.
Diffstat (limited to 'src/File.cc')
| -rw-r--r-- | src/File.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/File.cc b/src/File.cc index 101edc37..4100348c 100644 --- a/src/File.cc +++ b/src/File.cc @@ -98,14 +98,13 @@ bool File::mkdirs() { if(Util::startsWith(name, "/")) { accDir = "/"; } - mode_t mode = S_IRUSR|S_IWUSR|S_IXUSR; for(Strings::const_iterator itr = dirs.begin(); itr != dirs.end(); itr++, accDir += "/") { accDir += *itr; if(File(accDir).isDir()) { continue; } - if(mkdir(accDir.c_str(), mode) == -1) { + if(mkdir(accDir.c_str(), OPEN_MODE) == -1) { return false; } } |
