Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 635129 Details for
Bug 870058
qpidd --config <directory> hangs during startup
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Detect if command line contained a directory instead of a file
Options_cpp_870058.patch (text/plain), 798 bytes, created by
Ernie
on 2012-10-29 18:56:53 UTC
(
hide
)
Description:
Detect if command line contained a directory instead of a file
Filename:
MIME Type:
Creator:
Ernie
Created:
2012-10-29 18:56:53 UTC
Size:
798 bytes
patch
obsolete
>Index: Options.cpp >=================================================================== >--- Options.cpp (revision 1397240) >+++ Options.cpp (working copy) >@@ -150,6 +150,10 @@ > if (!configFile.empty()) { > parsing="configuration file "+configFile; > ifstream conf(configFile.c_str()); >+ // If the passed in configFile is a valid directory, ifstream will not report an error and >+ // we would end up looping and never hit eof. To avoid this, we can call peek() which will >+ // set the badbit on directories, but is benign on files. >+ conf.peek(); > if (conf.good()) { > // Remove this hack when we get a stable version of boost that > // can allow unregistered options in config files.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
crolke
: review+
Actions:
View
|
Diff
Attachments on
bug 870058
: 635129