summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-24 17:11:48 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-24 17:11:48 +0000
commit17fb1cc448d6009086ce11dba0b6b3c3257cb6bb (patch)
treeccb526993f93850b1401b784d8ead05c98b9c181
parentc202da428be112c9b979ff835907593cc32f1442 (diff)
Use return rather than exit to enable the stack protector. From
fritjof@alokat.org. ok tb@
-rw-r--r--usr.bin/basename/basename.c4
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;