gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-45


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-452-g4c3c295
Date: Mon, 15 Apr 2013 10:41:09 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  4c3c2958f659421b3d85b46380bff1db4690d843 (commit)
      from  e835e605fbae472db7d97d445da046d1dd4311a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=4c3c2958f659421b3d85b46380bff1db4690d843


commit 4c3c2958f659421b3d85b46380bff1db4690d843
Author: Daniele Forsi <address@hidden>
Date:   Mon Apr 15 12:39:37 2013 +0200

    Don't test for existence and don't try to create the dot directory

diff --git a/gnokii/gnokii.c b/gnokii/gnokii.c
index 1c32a07..699e12f 100644
--- a/gnokii/gnokii.c
+++ b/gnokii/gnokii.c
@@ -315,7 +315,6 @@ static int install_log_handler(void)
                }
 #endif
                if (!basepath) {
-                       basepath = ".";
                        path = ".";
                } else {
                        path = calloc(MAX_PATH_LEN, sizeof(char));
@@ -331,15 +330,14 @@ static int install_log_handler(void)
                                snprintf(path, MAX_PATH_LEN, "%s/gnokii", 
basepath);
                        }
 #endif
+                       st = stat(basepath, &buf);
+                       if (st)
+                               mkdir(basepath, S_IRWXU);
+       
+                       st = stat(path, &buf);
+                       if (st)
+                               mkdir(path, S_IRWXU);
                }
-
-               st = stat(basepath, &buf);
-               if (st)
-                       mkdir(basepath, S_IRWXU);
-
-               st = stat(path, &buf);
-               if (st)
-                       mkdir(path, S_IRWXU);
        }
 
        snprintf(logname, sizeof(logname), "%s/%s", path, file);

-----------------------------------------------------------------------

Summary of changes:
 gnokii/gnokii.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]