From: | "Ned Ludd (solar)" <solar@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/uclibc/0.9.28.3: 50_all_uClibc-realpath.patch |
Date: | Mon, 05 May 2008 18:44:06 |
Message-Id: | E1Jt5fP-0005fM-RA@stork.gentoo.org |
1 | solar 08/05/05 18:44:03 |
2 | |
3 | Added: 50_all_uClibc-realpath.patch |
4 | Log: |
5 | - add realpath fix from bug 125701 |
6 | |
7 | Revision Changes Path |
8 | 1.1 src/patchsets/uclibc/0.9.28.3/50_all_uClibc-realpath.patch |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.28.3/50_all_uClibc-realpath.patch?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.28.3/50_all_uClibc-realpath.patch?rev=1.1&content-type=text/plain |
12 | |
13 | Index: 50_all_uClibc-realpath.patch |
14 | =================================================================== |
15 | --- uClibc-0.9.28.3/libc/stdlib/realpath.c.orig 2008-04-28 13:06:02 +0000 |
16 | +++ uClibc-0.9.28.3/libc/stdlib/realpath.c 2008-04-28 13:07:01 +0000 |
17 | @@ -71,7 +71,8 @@ |
18 | /* If it's a relative pathname use getcwd for starters. */ |
19 | if (*path != '/') { |
20 | /* Ohoo... */ |
21 | - getcwd(new_path, PATH_MAX - 1); |
22 | + if (getcwd(new_path, PATH_MAX - 1) == NULL) |
23 | + return NULL; |
24 | new_path += strlen(new_path); |
25 | if (new_path[-1] != '/') |
26 | *new_path++ = '/'; |
27 | |
28 | |
29 | |
30 | -- |
31 | gentoo-commits@l.g.o mailing list |