Switch to unified view
a/src/index/mimetype.cpp | b/src/index/mimetype.cpp | ||
---|---|---|---|
... |
... |
||
55 | 55 | ||
56 | // Then exec 'file -i' |
56 | // Then exec 'file -i' |
57 | #ifdef USE_SYSTEM_FILE_COMMAND |
57 | #ifdef USE_SYSTEM_FILE_COMMAND |
58 | if (usfc && mime.empty()) { |
58 | if (usfc && mime.empty()) { |
59 | // Last resort: use "file -i" |
59 | // Last resort: use "file -i" |
60 | list<string> args;
|
60 | vector<string> args; |
61 | 61 | ||
62 | args.push_back("-i"); |
62 | args.push_back("-i"); |
63 | args.push_back(fn); |
63 | args.push_back(fn); |
64 | ExecCmd ex; |
64 | ExecCmd ex; |
65 | string result; |
65 | string result; |