~ubuntu-branches/ubuntu/saucy/telepathy-mission-control-5/saucy

« back to all changes in this revision

Viewing changes to src/mcd-misc.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2013-01-10 11:07:51 UTC
  • mfrom: (0.13.5)
  • Revision ID: package-import@ubuntu.com-20130110110751-fzge1h4wgrwqu1zi
Tags: 1:5.14.0-0ubuntu1
* New upstream release
* debian/control:
  - Use standards version 3.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    g_object_unref (object);
177
177
}
178
178
 
 
179
gboolean
 
180
mcd_ensure_directory (const gchar *dir,
 
181
                      GError **error)
 
182
{
 
183
    DEBUG ("%s", dir);
 
184
 
 
185
    if (g_mkdir_with_parents (dir, 0700) != 0)
 
186
    {
 
187
        g_set_error (error, TP_ERROR, TP_ERROR_NOT_AVAILABLE,
 
188
                     "Unable to create directory '%s': %s",
 
189
                     dir, g_strerror (errno));
 
190
        return FALSE;
 
191
    }
 
192
 
 
193
    return TRUE;
 
194
}
 
195
 
179
196
int
180
197
_mcd_chmod_private (const gchar *filename)
181
198
{