From: lace <> Date: Fri, 16 Dec 2005 16:09:10 +0000 (+0000) Subject: +Error text: Failed to check for non-recursive removal directory "%s": %m X-Git-Tag: bp_HEAD~62 X-Git-Url: https://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=ee58b164ed046847bd1670e4b988e3e8d67a3281 +Error text: Failed to check for non-recursive removal directory "%s": %m - Reached by: wim delvaux --- diff --git a/src/libcaptive/sandbox/split.c b/src/libcaptive/sandbox/split.c index 10ce69f..4612a77 100644 --- a/src/libcaptive/sandbox/split.c +++ b/src/libcaptive/sandbox/split.c @@ -1,6 +1,6 @@ /* $Id$ * Connection of captive-vfs interface through CORBA/ORBit - * Copyright (C) 2002 Jan Kratochvil + * Copyright (C) 2002-2005 Jan Kratochvil * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -381,7 +381,8 @@ struct dirent *dirent; int errint; dir=opendir(dirname); - g_assert(dir!=NULL); + if (!dir) + g_error(_("Failed to check for non-recursive removal directory \"%s\": %m"),dirname); while (errno=0,(dirent=readdir(dir))) { gchar *pathname;