[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [win-pv-devel] [PATCH 3/4] Improve elevation prompts



On Thu, 7 Nov 2019 at 15:54, Owen Smith <owen.smith@xxxxxxxxxx> wrote:
>
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

<sigh> This should have been squashed into the previous patch... I'll do it.

  Paul

> ---
>  src/tty/tty.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/tty/tty.c b/src/tty/tty.c
> index e295f06..c3dfcf9 100644
> --- a/src/tty/tty.c
> +++ b/src/tty/tty.c
> @@ -375,7 +375,7 @@ RequestElevation(
>          return TRUE;
>
>      ECHO(&Context->Device, "\r\n");
> -    ECHO(&Context->Device, " run as Administrator [yes|no]: ");
> +    ECHO(&Context->Device, "Run Elevated [yes|no]: ");
>
>      ZeroMemory(Buffer, sizeof (Buffer));
>
> @@ -396,6 +396,8 @@ RequestElevation(
>      if (_tcslen(Buffer) == 0)
>          return FALSE;
>
> +    ECHO(&Context->Device, "\r\n");
> +
>      if (_tcscmp(Buffer, TEXT("yes")) != 0)
>          return TRUE;
>
> @@ -410,6 +412,8 @@ RequestElevation(
>      Context->OriginalToken = Context->Token;
>      Context->Token = LinkedToken.LinkedToken;
>
> +    ECHO(&Context->Device, "Running Elevated\r\n\r\n");
> +
>      return TRUE;
>  }
>
> --
> 2.16.2.windows.1
>
>
> _______________________________________________
> win-pv-devel mailing list
> win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/win-pv-devel

_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.