summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-25 12:38:36 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-25 13:47:58 +0100
commit8a641727dafa866e181024bc8b9179f1be14227c (patch)
tree0c532c2ba92d99b66ce77a96c851ca91c986b1d6
parent67bdd4d0716528bba63763098739ce5365e0376d (diff)
e auth - fix missing stderr output logs i missed last commit
-rw-r--r--src/bin/e_ckpasswd_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/e_ckpasswd_main.c b/src/bin/e_ckpasswd_main.c
index 3d27ac6af..08de4bc3d 100644
--- a/src/bin/e_ckpasswd_main.c
+++ b/src/bin/e_ckpasswd_main.c
@@ -293,14 +293,14 @@ main(int argc, char **argv)
293 rd = read(0, pw + pos, 1); 293 rd = read(0, pw + pos, 1);
294 if (rd < 0) 294 if (rd < 0)
295 { 295 {
296 fprintf(stderr, "AUTH: Error. Can't read polkit cookie on stdin\n"); 296 fprintf(stderr, "AUTH: POLKIT: Error. Can't read polkit cookie on stdin\n");
297 goto err; 297 goto err;
298 } 298 }
299 if (pw[pos] == ' ') 299 if (pw[pos] == ' ')
300 { 300 {
301 memcpy(polkit_cookie, pw, pos); 301 memcpy(polkit_cookie, pw, pos);
302 polkit_cookie[pos] = 0; 302 polkit_cookie[pos] = 0;
303 printf("COOKIE: [%s]\n", polkit_cookie); 303 fprintf(stderr, "AUTH: POLKIT: [%s]\n", polkit_cookie);
304 pos = 0; 304 pos = 0;
305 break; 305 break;
306 } 306 }
@@ -309,7 +309,7 @@ main(int argc, char **argv)
309 pos++; 309 pos++;
310 if (pos > 4000) 310 if (pos > 4000)
311 { 311 {
312 fprintf(stderr, "AUTH: Error. Polkit cookie too long\n"); 312 fprintf(stderr, "AUTH: POLKIT: Error. Polkit cookie too long\n");
313 return -10; 313 return -10;
314 } 314 }
315 } 315 }
@@ -326,7 +326,7 @@ main(int argc, char **argv)
326 { 326 {
327 pw[pos] = 0; 327 pw[pos] = 0;
328 polkit_uid = atoi(pw); 328 polkit_uid = atoi(pw);
329 printf("AUTH: UID: [%u]\n", polkit_uid); 329 fprintf(stderr, "AUTH: UID: [%u]\n", polkit_uid);
330 break; 330 break;
331 } 331 }
332 else 332 else