X-Git-Url: https://git.proxmox.com/?p=mirror_smartmontools-debian.git;a=blobdiff_plain;f=smartctl.cpp;h=e2116398153bf3eca0e6239fbf70987c1b53eaac;hp=53ee298bfb589dcc48a1b96e859c80d6f3daf5cb;hb=6b80b4d2c7b80037c557bae53e7ff42cfda4a2cb;hpb=d2cd5c38d67969917569ea37c271c02e70768531 diff --git a/smartctl.cpp b/smartctl.cpp index 53ee298..e211639 100644 --- a/smartctl.cpp +++ b/smartctl.cpp @@ -1,7 +1,7 @@ /* * smartctl.cpp * - * Home page of code is: http://smartmontools.sourceforge.net + * Home page of code is: http://www.smartmontools.org * * Copyright (C) 2002-11 Bruce Allen * Copyright (C) 2008-15 Christian Franke @@ -51,7 +51,7 @@ #include "smartctl.h" #include "utility.h" -const char * smartctl_cpp_cvsid = "$Id: smartctl.cpp 4080 2015-05-05 20:31:22Z chrfranke $" +const char * smartctl_cpp_cvsid = "$Id: smartctl.cpp 4162 2015-10-31 16:36:16Z chrfranke $" CONFIG_H_CVSID SMARTCTL_H_CVSID; // Globals to control printing @@ -313,7 +313,7 @@ static const char * parse_options(int argc, char** argv, opterr=optopt=0; const char * type = 0; // set to -d optarg - bool no_defaultdb = false; // set true on '-B FILE' + bool use_default_db = true; // set false on '-B FILE' bool output_format_set = false; // set true on '-f FORMAT' int scan = 0; // set by --scan, --scan-open bool badarg = false, captive = false; @@ -665,7 +665,7 @@ static const char * parse_options(int argc, char** argv, } else if (!strcmp(optarg, "show")) { ataopts.show_presets = true; } else if (!strcmp(optarg, "showall")) { - if (!no_defaultdb && !read_default_drive_databases()) + if (!init_drive_database(use_default_db)) EXIT(FAILCMD); if (optind < argc) { // -P showall MODEL [FIRMWARE] int cnt = showmatchingpresets(argv[optind], (optind+1