+Error text: Failed to check for non-recursive removal directory "%s": %m
authorlace <>
Fri, 16 Dec 2005 16:09:10 +0000 (16:09 +0000)
committerlace <>
Fri, 16 Dec 2005 16:09:10 +0000 (16:09 +0000)
 - Reached by: wim delvaux

src/libcaptive/sandbox/split.c

index 10ce69f..4612a77 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
  * Connection of captive-vfs interface through CORBA/ORBit
- * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+ * Copyright (C) 2002-2005 Jan Kratochvil <project-captive@jankratochvil.net>
  * 
  * 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;