lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <25d110ca-7fe4-c8be-f3f3-fdfeaa04cbed@intel.com>
Date:   Thu, 29 Apr 2021 19:22:54 +0300
From:   Adrian Hunter <adrian.hunter@...el.com>
To:     Andi Kleen <ak@...ux.intel.com>
Cc:     Arnaldo Carvalho de Melo <acme@...nel.org>,
        Jiri Olsa <jolsa@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 04/12] perf inject: Add facility to do in place update

On 29/04/21 7:00 pm, Andi Kleen wrote:
>> +		if (!data.force && !inject.in_place_update_dry_run) {
>> +			char reply[10];
>> +
>> +			printf("The input file will be updated in place. OK? (y/n) ");
>> +			if (!fgets(reply, sizeof(reply), stdin) || strcmp(reply, "y\n")) {
> 
> Interactive questions could break lots of scripting.
> 
> Just error out in this case and require the option.
> 

If it is used with --force (or -f) then there is no prompt.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ