Skip to content
Snippets Groups Projects
Commit d8d66504 authored by chrfranke's avatar chrfranke
Browse files

Cygwin: Open drive database files in text mode.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3004 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 08f5ba14
No related tags found
No related merge requests found
......@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] Cygwin: Open drive database files in text mode.
[CF] Cygwin: Check for 'syslogd' and 'syslog-ng' in initd script.
[CF] Windows: Disable Win9x/ME specific code if no longer supported
......
......@@ -674,7 +674,11 @@ static bool parse_drive_database(parse_ptr src, drive_database & db, const char
// Read drive database from file.
bool read_drive_database(const char * path)
{
stdio_file f(path, "r");
stdio_file f(path, "r"
#ifdef __CYGWIN__ // Allow files with '\r\n'.
"t"
#endif
);
if (!f) {
pout("%s: cannot open drive database file\n", path);
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment