vmihalko / t2_polkit

Other
0 stars 0 forks source link

pkexec: improve pkexec authentication message - [merged] #371

Closed vmihalko closed 1 year ago

vmihalko commented 1 year ago

Merges vmihalko-pkexec-auth-message -> master

This MR is an improved version of the https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/90.

Instead of the program variable, output the command_line. If is the length of a command_line bigger than 80 characters output: "{first 38 chars} ... {last 42 chars}"

  gchar *cmdline_short = NULL;
  // A newly-allocated copy of command_line
  cmdline_short = g_strdup(command_line);
  // Copies a null-terminated string into the dest buffer,
  // include the trailing null, and return a pointer to the
  // trailing null byte.
  if (strlen(command_line) > 80)
      g_stpcpy(g_stpcpy( cmdline_short + 38, " ... " ),
               command_line + strlen(command_line) - 37 );
vmihalko commented 1 year ago

added 3 commits

Compare with previous version

vmihalko commented 1 year ago

added 1 commit

Compare with previous version

vmihalko commented 1 year ago

In GitLab by @jrybar on Mar 14, 2023, 17:46

added 2 commits

Compare with previous version

vmihalko commented 1 year ago

In GitLab by @jrybar on Mar 14, 2023, 17:46

enabled an automatic merge when the pipeline for 977d417792a185cbc6cf67faae8f4e62036b0357 succeeds

vmihalko commented 1 year ago

In GitLab by @jrybar on Mar 15, 2023, 17:15

aborted the automatic merge because target branch was updated

vmihalko commented 1 year ago

In GitLab by @jrybar on Mar 15, 2023, 17:28

added 2 commits

Compare with previous version