summaryrefslogtreecommitdiff
path: root/bin/ls
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-25 20:37:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-25 20:37:46 +0000
commit510e83988dd7fa924ec8c522cb49c2d00f82b16c (patch)
tree4c40f1df5c08ebca0ce3cef32713af4d2813d646 /bin/ls
parent34da262f5c49f021de50ab1b309ba89c7c7bb088 (diff)
do not exit from ls_main() but return; spotted by lint
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/ls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c
index b5b6fe3e958..51912338642 100644
--- a/bin/ls/ls.c
+++ b/bin/ls/ls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ls.c,v 1.24 2005/06/15 17:47:17 millert Exp $ */
+/* $OpenBSD: ls.c,v 1.25 2005/11/25 20:37:45 deraadt Exp $ */
/* $NetBSD: ls.c,v 1.18 1996/07/09 09:16:29 mycroft Exp $ */
/*
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)ls.c 8.7 (Berkeley) 8/5/94";
#else
-static char rcsid[] = "$OpenBSD: ls.c,v 1.24 2005/06/15 17:47:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: ls.c,v 1.25 2005/11/25 20:37:45 deraadt Exp $";
#endif
#endif /* not lint */
@@ -317,7 +317,7 @@ ls_main(int argc, char *argv[])
traverse(argc, argv, fts_options);
else
traverse(1, dotav, fts_options);
- exit(rval);
+ return (rval);
}
static int output; /* If anything output. */