]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Remove the message confirming that sarg is aborting
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 12:44:00 +0000 (14:44 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 12:44:00 +0000 (14:44 +0200)
It is obvious sarg aborts after reporting an error. There is no need to
display one more message telling so.

util.c

diff --git a/util.c b/util.c
index 0cdee158c462baa249a72a11fc0e7b0f62e4ccd4..72006b2318715667fe4835f1a74b1a4c021ba839 100644 (file)
--- a/util.c
+++ b/util.c
@@ -315,7 +315,6 @@ void my_mkdir(const char *name)
 
        if(!is_absolute(name)) {
                debuga(_("Invalid path (%s). Please, use absolute paths only.\n"),name);
-               debuga(_("process aborted.\n"));
                exit(EXIT_FAILURE);
        }
 
@@ -330,7 +329,6 @@ void my_mkdir(const char *name)
                        if (access(w0, R_OK) != 0) {
                                if (mkdir(w0,0755)) {
                                        debuga(_("Cannot create directory %s - %s\n"),w0,strerror(errno));
-                                       debuga(_("process aborted.\n"));
                                        exit(EXIT_FAILURE);
                                }
                        }
@@ -342,7 +340,6 @@ void my_mkdir(const char *name)
        if (access(name, R_OK) != 0) {
                if (mkdir(name,0755)) {
                        debuga(_("Cannot create directory %s - %s\n"),name,strerror(errno));
-                       debuga(_("process aborted.\n"));
                        exit(EXIT_FAILURE);
                }
        }