diff options
author | Rob Landley <rob@landley.net> | 2016-07-23 18:25:38 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-07-23 18:25:38 -0500 |
commit | 7918d9ff8c39b1acdfaffb93de7d337dd4faa9a8 (patch) | |
tree | 48be47e85fd3d0a2fa3303c775b4d76b1985c661 | |
parent | 65c49620801594ad92f2956efdbee942dec707ce (diff) | |
download | toybox-7918d9ff8c39b1acdfaffb93de7d337dd4faa9a8.tar.gz |
Usischev Yury pointed out that id shouldn't use exit() directly.
-rw-r--r-- | toys/posix/id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/id.c b/toys/posix/id.c index 01610bcd..4b732b1b 100644 --- a/toys/posix/id.c +++ b/toys/posix/id.c @@ -73,7 +73,7 @@ static void s_or_u(char *s, unsigned u, int done) else printf("%u", u); if (done) { xputc('\n'); - exit(0); + xexit(); } } @@ -143,7 +143,7 @@ static void do_id(char *username) } if (toys.optflags&FLAG_G) { xputc('\n'); - exit(0); + xexit(); } } |