summaryrefslogtreecommitdiff
path: root/src/pathchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathchk.c')
-rw-r--r--src/pathchk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index 4b3884fe3..3cb8bef62 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -153,7 +153,7 @@ main (int argc, char **argv)
ok &= validate_file_name (argv[optind],
check_basic_portability, check_extra_portability);
- exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
+ return ok ? EXIT_SUCCESS : EXIT_FAILURE;
}
/* If FILE contains a component with a leading "-", report an error