diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-03-26 12:16:57 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-03-26 12:16:57 +0000 |
| commit | 9b73454b07dc23e2aaf08baf6eff1643590e30f3 (patch) | |
| tree | 775c1b69f6f00670d932bc4880c269da84930685 /src/File.h | |
| parent | 228ed66f73ada0db6bcec7fd5aa7462a3c3f3900 (diff) | |
2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To the ability to read options from a config file:
* src/main.cc: Command-line parameter validation is delegated to
OptionHandler class.
* src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New
class.
* src/Option.h, src/Option.cc (clear): New function.
* src/OptionParser.h, src/OptionParser.cc: New class.
* src/OptionHandler.h: New class.
* src/NameMatchOptionHandler.h: New class.
* src/OptionHandlerImpl.h: New classes.
* src/prefs.h: '_' -> '-'
(FTP_PASV_ENABLED): Renamed to FTP_PASV.
(FTP_PASV): New definition.
* src/Util.h, src/Util.cc (getRealSize): New function.
To disable netrc support if .netrc file does not have correct
permissions:
* src/File.h, src/File.cc (mode): New function.
To prevent confidential information to be logged:
* src/HttpConnection.h, src/HttpConnection.cc
(eraseConfidentialInfo): New function.
(sendRequest): Call eraseConfidentialInfo().
(sendProxyRequest): Call eraseConfidentialInfo().
* src/main.cc: Validate permissions of .netrc file.
To add --user-agent command-line option:
* src/main.cc: Added new command line option: --user-agent
* src/prefs.h (PREF_USER_AGENT): New definition.
* src/HttpRequestCommand.cc (executeInternal): Set user-agent
option
parameter to HttpRequest object.
Marged the patches from Dan Fandrich.
Diffstat (limited to 'src/File.h')
| -rw-r--r-- | src/File.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -36,7 +36,9 @@ #define _D_FILE_H_ #include "common.h" -#include <string> +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> using namespace std; @@ -81,7 +83,9 @@ public: */ bool mkdirs(); - long long int size(); + int64_t size(); + + mode_t mode(); }; #endif // _D_FILE_H_ |
