X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1a530ec2aabcd4d54698e476305573d0e4c31cb7..8f2287ef5c05d496fcb9b012629af007fe56f897:/progs/pixie.c diff --git a/progs/pixie.c b/progs/pixie.c index 43807037..3fd32081 100644 --- a/progs/pixie.c +++ b/progs/pixie.c @@ -775,7 +775,7 @@ OK\n\ goto close; } else { p_flush(tag); - p_add(tag, s, t); + p_add(tag, s ? s : "", t); if (pixserv_write(px, "OK\n")) goto close; } } @@ -1244,7 +1244,7 @@ int main(int argc, char *argv[]) /* --- Set up the locked memory area --- */ l_init(&lm, 16384); - setuid(getuid()); + if (setuid(getuid())) _exit(125); /* --- Parse command line arguments --- */