Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18174/src

Modified Files:
        misc.c misc_confirm.c prefs.c 
Log Message:
         * change permissions to 0777 when creating directories (will
           be modified by user's umask).



Index: misc.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/misc.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -d -r1.190 -r1.191
--- misc.c      26 Nov 2005 13:44:41 -0000      1.190
+++ misc.c      9 Dec 2005 14:55:34 -0000       1.191
@@ -1,5 +1,5 @@
 /* -*- coding: utf-8; -*-
-|  Time-stamp: <2005-11-26 16:51:11 jcs>
+|  Time-stamp: <2005-12-09 23:51:00 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -1331,7 +1331,7 @@
 
        if (!g_file_test(dn, G_FILE_TEST_EXISTS))
        {
-           if (mkdir(dn, 0755) == -1)
+           if (mkdir(dn, 0777) == -1)
            {
                gtkpod_warning (_("Error creating %s: %s\n"),
                                dn, g_strerror(errno));

Index: misc_confirm.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/misc_confirm.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- misc_confirm.c      28 Nov 2005 16:25:34 -0000      1.24
+++ misc_confirm.c      9 Dec 2005 14:55:34 -0000       1.25
@@ -1,4 +1,4 @@
-/* Time-stamp: <2005-11-27 17:57:06 jcs>
+/* Time-stamp: <2005-12-09 23:52:06 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -876,7 +876,7 @@
        pbuf = g_build_filename (mp, "Calendars", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -887,7 +887,7 @@
        pbuf = g_build_filename (mp, "Contacts", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -898,7 +898,7 @@
        pbuf = g_build_filename (mp, "iPod_Control", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -909,7 +909,7 @@
        pbuf = g_build_filename (mp, "iPod_Control", "Music", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -920,7 +920,7 @@
        pbuf = g_build_filename (mp, "iPod_Control", "iTunes", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -931,7 +931,7 @@
        pbuf = g_build_filename (mp, "iPod_Control", "Artwork", NULL);
        if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
        {
-           if((mkdir(pbuf, 0755) != 0))
+           if((mkdir(pbuf, 0777) != 0))
                errordir = pbuf;
        }
        if (!errordir)
@@ -947,7 +947,7 @@
                                     "iPod_Control", "Music", num, NULL);
            if (!g_file_test (pbuf, G_FILE_TEST_EXISTS))
            {
-               if((mkdir(pbuf, 0755) != 0))
+               if((mkdir(pbuf, 0777) != 0))
                    errordir = pbuf;
                g_free (num);
            }

Index: prefs.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/prefs.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- prefs.c     26 Nov 2005 13:44:41 -0000      1.153
+++ prefs.c     9 Dec 2005 14:55:34 -0000       1.154
@@ -1,4 +1,4 @@
-/* Time-stamp: <2005-11-25 23:52:11 jcs>
+/* Time-stamp: <2005-12-09 23:52:06 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -1712,7 +1712,7 @@
       cfgdir = g_build_filename (str, ".gtkpod", NULL);
       if(!g_file_test(cfgdir, G_FILE_TEST_IS_DIR))
       {
-         if(mkdir(cfgdir, 0755) == -1)
+         if(mkdir(cfgdir, 0777) == -1)
          {
              gtkpod_warning(_("Unable to 'mkdir %s'\n"), cfgdir);
          }



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to