diff options
-rw-r--r-- | sbin/savecore/savecore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 1d00ed2..fbbabe5 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -502,7 +502,7 @@ DoFile(const char *savedir, const char *device) temp = malloc(sectorsize); if (temp == NULL) { syslog(LOG_ERR, "%m"); - return; + goto closefd; } } if (lseek(fd, lasthd, SEEK_SET) != lasthd || @@ -845,6 +845,7 @@ main(int argc, char **argv) continue; DoFile(savedir, fsp->fs_spec); } + endfsent(); } else { for (i = 0; i < argc; i++) DoFile(savedir, argv[i]); |