diff options
-rw-r--r-- | bin/pax/ar_io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c index 9fe692d..0ae5042 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 */ |