Don't abort when trying to remove a directory marked as obsolete that does

not exist.
This commit is contained in:
fvdl 2000-10-11 11:10:46 +00:00
parent 16d465114d
commit 38dbc727ef
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.54 2000/09/26 13:26:02 fvdl Exp $ */
/* $NetBSD: util.c,v 1.55 2000/10/11 11:10:46 fvdl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -709,6 +709,11 @@ cleanup_dist(name)
msg_display_add(MSG_renamed_dir, current->name,
file_path);
} else { /* rmdir error */
/*
* Don't worry about non-existing directories.
*/
if (saved_errno == ENOENT)
continue;
if (logging)
fprintf(log, "rm %s failed: %s\n",
current->name, strerror(saved_errno));