Author: stippi Date: 2010-12-19 11:44:20 +0100 (Sun, 19 Dec 2010) New Revision: 39890 Changeset: http://dev.haiku-os.org/changeset/39890 Ticket: http://dev.haiku-os.org/ticket/6899 Modified: haiku/trunk/src/apps/drivesetup/DriveSetup.cpp Log: Only print unexpected errors to stderr when constructing the settings file. Fixes ticket #6899. Modified: haiku/trunk/src/apps/drivesetup/DriveSetup.cpp =================================================================== --- haiku/trunk/src/apps/drivesetup/DriveSetup.cpp 2010-12-19 10:34:55 UTC (rev 39889) +++ haiku/trunk/src/apps/drivesetup/DriveSetup.cpp 2010-12-19 10:44:20 UTC (rev 39890) @@ -135,7 +135,11 @@ ret = file.SetTo(path.Path(), forWriting ? writeFlags : readFlags); if (ret != B_OK) { - fprintf(stderr, "failed to init file: %s\n", strerror(ret)); + if (forWriting) { + // Only inform of an error if the file was supposed to be written. + fprintf(stderr, "failed to init settings file: %s\n", + strerror(ret)); + } return ret; }