aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-06-25 05:27:59 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-06-25 05:27:59 +0000
commitc33c2570d3b25cbce0054df59cc8931ca0cfff05 (patch)
treefef22686a875c63bee24a8f3d4319bf232e0a041 /bin
parentf200cb78cf4155e003b0d7dea42cbf68a2de5ec6 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/ar_io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c
index 9fe692daf721a..0ae50421ed08a 100644
--- a/bin/pax/ar_io.c
+++ b/bin/pax/ar_io.c
@@ -154,8 +154,10 @@ ar_open(const char *name)
return(-1);
if (chdname != NULL)
- if (chdir(chdname) != 0)
+ if (chdir(chdname) != 0) {
syswarn(1, errno, "Failed chdir to %s", chdname);
+ return(-1);
+ }
/*
* set up is based on device type
*/