summaryrefslogtreecommitdiff
path: root/src
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:45:40 +0100
commitb16b2fac743e51871cff18bc45154271660ac2e2 (patch)
tree76107a97b6ad40810a4017baf6cb02a321848516 /src
parent4475eb42a6a5ac3cf92166c4283b0b8391ce0581 (diff)
e auth - fix missing stderr output logs i missed last commit
Diffstat (limited to 'src')
-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 76bbf3543..bc70f2997 100644
--- a/src/bin/e_ckpasswd_main.c
+++ b/src/bin/e_ckpasswd_main.c
@@ -292,14 +292,14 @@ main(int argc, char **argv)
292 rd = read(0, pw + pos, 1); 292 rd = read(0, pw + pos, 1);
293 if (rd < 0) 293 if (rd < 0)
294 { 294 {
295 fprintf(stderr, "AUTH: Error. Can't read polkit cookie on stdin\n"); 295 fprintf(stderr, "AUTH: POLKIT: Error. Can't read polkit cookie on stdin\n");
296 goto err; 296 goto err;
297 } 297 }
298 if (pw[pos] == ' ') 298 if (pw[pos] == ' ')
299 { 299 {
300 memcpy(polkit_cookie, pw, pos); 300 memcpy(polkit_cookie, pw, pos);
301 polkit_cookie[pos] = 0; 301 polkit_cookie[pos] = 0;
302 printf("COOKIE: [%s]\n", polkit_cookie); 302 fprintf(stderr, "AUTH: POLKIT: [%s]\n", polkit_cookie);
303 pos = 0; 303 pos = 0;
304 break; 304 break;
305 } 305 }
@@ -308,7 +308,7 @@ main(int argc, char **argv)
308 pos++; 308 pos++;
309 if (pos > 4000) 309 if (pos > 4000)
310 { 310 {
311 fprintf(stderr, "AUTH: Error. Polkit cookie too long\n"); 311 fprintf(stderr, "AUTH: POLKIT: Error. Polkit cookie too long\n");
312 return -10; 312 return -10;
313 } 313 }
314 } 314 }
@@ -325,7 +325,7 @@ main(int argc, char **argv)
325 { 325 {
326 pw[pos] = 0; 326 pw[pos] = 0;
327 polkit_uid = atoi(pw); 327 polkit_uid = atoi(pw);
328 printf("AUTH: UID: [%u]\n", polkit_uid); 328 fprintf(stderr, "AUTH: UID: [%u]\n", polkit_uid);
329 break; 329 break;
330 } 330 }
331 else 331 else