e auth - fix missing stderr output logs i missed last commit

devs/bu5hm4n/recognition
Carsten Haitzler 3 years ago
parent 4475eb42a6
commit b16b2fac74
  1. 8
      src/bin/e_ckpasswd_main.c

@ -292,14 +292,14 @@ main(int argc, char **argv)
rd = read(0, pw + pos, 1);
if (rd < 0)
{
fprintf(stderr, "AUTH: Error. Can't read polkit cookie on stdin\n");
fprintf(stderr, "AUTH: POLKIT: Error. Can't read polkit cookie on stdin\n");
goto err;
}
if (pw[pos] == ' ')
{
memcpy(polkit_cookie, pw, pos);
polkit_cookie[pos] = 0;
printf("COOKIE: [%s]\n", polkit_cookie);
fprintf(stderr, "AUTH: POLKIT: [%s]\n", polkit_cookie);
pos = 0;
break;
}
@ -308,7 +308,7 @@ main(int argc, char **argv)
pos++;
if (pos > 4000)
{
fprintf(stderr, "AUTH: Error. Polkit cookie too long\n");
fprintf(stderr, "AUTH: POLKIT: Error. Polkit cookie too long\n");
return -10;
}
}
@ -325,7 +325,7 @@ main(int argc, char **argv)
{
pw[pos] = 0;
polkit_uid = atoi(pw);
printf("AUTH: UID: [%u]\n", polkit_uid);
fprintf(stderr, "AUTH: UID: [%u]\n", polkit_uid);
break;
}
else

Loading…
Cancel
Save