/[packages]/cauldron/ORBit2/current/SOURCES/ORBit2-2.14.4-tmpdir.patch
ViewVC logotype

Contents of /cauldron/ORBit2/current/SOURCES/ORBit2-2.14.4-tmpdir.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5508 - (show annotations) (download)
Mon Jan 10 22:15:20 2011 UTC (10 years, 8 months ago) by dmorgan
File size: 635 byte(s)
imported package ORBit2
1 --- ORBit2-2.14.4/src/orb/GIOP/giop.c.tmpdir 2006-10-17 13:49:41.000000000 +0200
2 +++ ORBit2-2.14.4/src/orb/GIOP/giop.c 2006-12-18 10:39:36.000000000 +0100
3 @@ -82,9 +82,16 @@
4 g_return_val_if_fail (prefix != NULL, NULL);
5
6 dirh = g_dir_open (dir, 0, NULL);
7 - if (!dirh)
8 - return NULL;
9 -
10 + if (!dirh) { /* try prefix, just in case */
11 + cur_dir = g_strconcat (dir, "/", prefix, NULL);
12 + if (test_safe_socket_dir (cur_dir)) {
13 + return cur_dir;
14 + }
15 + else {
16 + g_free (cur_dir);
17 + return NULL;
18 + }
19 + }
20 prefix_with_hyphen = g_strdup_printf ("%s-", prefix);
21 prefix_len = strlen (prefix_with_hyphen);
22

  ViewVC Help
Powered by ViewVC 1.1.28