smartd.cpp: Ensure that '--warn-as-user=restricted' failure is visible in syslog.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5324 4ea69e1a-61f1-4043-bf83-b5c94c648137
Этот коммит содержится в:
родитель
d69568d042
Коммит
f806fc0bcd
@ -2,6 +2,9 @@ $Id$
|
||||
|
||||
2022-02-22 Christian Franke <franke@computer.org>
|
||||
|
||||
smartd.cpp: Ensure that '--warn-as-user=restricted' failure is
|
||||
visible in syslog.
|
||||
|
||||
smartd.cpp: Add '-q *nodev0*' option variants.
|
||||
These change the exit status to 0 if there are no devices
|
||||
to monitor.
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Home page of code is: https://www.smartmontools.org
|
||||
*
|
||||
* Copyright (C) 2002-11 Bruce Allen
|
||||
* Copyright (C) 2008-21 Christian Franke
|
||||
* Copyright (C) 2008-22 Christian Franke
|
||||
* Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
|
||||
* Copyright (C) 2008 Oliver Bock <brevilo@users.sourceforge.net>
|
||||
*
|
||||
@ -5312,7 +5312,7 @@ static int parse_options(int argc, char **argv)
|
||||
|
||||
#ifdef _WIN32
|
||||
if (warn_as_restr_user && !popen_as_restr_check()) {
|
||||
debugmode = 1;
|
||||
// debugmode=1 // would suppress messages to eventlog or log file
|
||||
PrintHead();
|
||||
PrintOut(LOG_CRIT, "Option '--warn-as-user=restricted' is not effective if the current user\n");
|
||||
PrintOut(LOG_CRIT, "is the local 'SYSTEM' or 'Administrator' account\n\n");
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user