Obsolete golang-120
[oi-userland.git] / components / library / xdg-user-dirs / patches / 01-bugs.patch
blobbbc5de9f9ac7aa20eff0822ad44e6649db95dbb7
1 diff -up xdg-user-dirs-0.9/xdg-user-dirs-update.c.orig xdg-user-dirs-0.9/xdg-user-dirs-update.c
2 --- xdg-user-dirs-0.9/xdg-user-dirs-update.c.orig 2007-08-20 09:00:59.000000000 +0100
3 +++ xdg-user-dirs-0.9/xdg-user-dirs-update.c 2008-02-12 14:16:30.169279000 +0000
4 @@ -168,7 +168,7 @@ mkdir_all (char *path)
7 if ((mkdir (path, 0755) == -1) &&
8 - (errno != EEXIST))
9 + (errno != EEXIST && errno != ENOSYS ))
11 result = 0;
12 break;
13 @@ -360,7 +360,7 @@ parse_colon_separated_dirs (const char *
16 paths = realloc (paths, sizeof (char *) * (numfiles + 2));
17 - paths[numfiles++] = strndup (path, len);
18 + paths[numfiles++] = g_strndup (path, len);
19 paths[numfiles] = NULL;
23 diff -up xdg-user-dirs-0.9/xdg-user-dir.orig xdg-user-dirs-0.9/xdg-user-dir
24 --- xdg-user-dirs-0.9/xdg-user-dir.orig 2008-02-12 21:30:39.975679000 +0000
25 +++ xdg-user-dirs-0.9/xdg-user-dir 2008-02-12 21:32:16.530976000 +0000
26 @@ -1,4 +1,4 @@
27 -#!/bin/sh
28 +#!/bin/bash
30 test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
31 if [ "x$1" = "xDESKTOP" ]; then