Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: endless loop on missing /etc/mime.types

  • Loading branch information...
commit a2c44fa3d66b57ba9ac0ec9682526b7c4d6a24fc 1 parent 5fb1313
Russ Ross authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  s3fs.cpp
View
2  s3fs.cpp
@@ -1078,7 +1078,7 @@ int main(int argc, char *argv[]) {
// load the list of mime types
std::string line;
std::ifstream passwd("/etc/mime.types");
- while (!getline(passwd, line).eof()) {
+ while (passwd.good() && !getline(passwd, line).eof()) {
if (line[0] == '#')
continue;
std::stringstream tmp(line);
Please sign in to comment.
Something went wrong with that request. Please try again.