diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-24 17:11:48 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-24 17:11:48 +0000 |
commit | 17fb1cc448d6009086ce11dba0b6b3c3257cb6bb (patch) | |
tree | ccb526993f93850b1401b784d8ead05c98b9c181 /usr.bin | |
parent | c202da428be112c9b979ff835907593cc32f1442 (diff) |
Use return rather than exit to enable the stack protector. From
fritjof@alokat.org.
ok tb@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/basename/basename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/basename/basename.c b/usr.bin/basename/basename.c index 9725e70a5ed..21f63b0fbef 100644 --- a/usr.bin/basename/basename.c +++ b/usr.bin/basename/basename.c @@ -1,4 +1,4 @@ -/* $OpenBSD: basename.c,v 1.12 2015/12/24 17:05:09 mmcc Exp $ */ +/* $OpenBSD: basename.c,v 1.13 2015/12/24 17:11:47 mmcc Exp $ */ /* $NetBSD: basename.c,v 1.9 1995/09/02 05:29:46 jtc Exp $ */ /*- @@ -89,7 +89,7 @@ main(int argc, char *argv[]) } } (void)puts(p); - exit(0); + return 0; } extern char *__progname; |