Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 309457
Collapse All | Expand All

(-)a/src/programs/pkexec.c (-2 / +2 lines)
Lines 375-380 main (int argc, char *argv[]) Link Here
375
  gchar *path;
375
  gchar *path;
376
  struct passwd pwstruct;
376
  struct passwd pwstruct;
377
  gchar pwbuf[8192];
377
  gchar pwbuf[8192];
378
  gchar cwdbuf[PATH_MAX];
378
  gchar *s;
379
  gchar *s;
379
  const gchar *environment_variables_to_save[] = {
380
  const gchar *environment_variables_to_save[] = {
380
    "SHELL",
381
    "SHELL",
Lines 437-443 main (int argc, char *argv[]) Link Here
437
      goto out;
438
      goto out;
438
    }
439
    }
439
440
440
  original_cwd = g_strdup (get_current_dir_name ());
441
  original_cwd = g_strdup (getcwd(cwdbuf,PATH_MAX));
441
  if (original_cwd == NULL)
442
  if (original_cwd == NULL)
442
    {
443
    {
443
      g_printerr ("Error getting cwd.\n");
444
      g_printerr ("Error getting cwd.\n");
444
- 

Return to bug 309457