lkml.org 
[lkml]   [2021]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 04/12] perf inject: Add facility to do in place update
From
Date
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.

\
 
 \ /
  Last update: 2021-04-29 18:23    [W:0.060 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site