2007-07-24 Richard Hughes <richard@hughsie.com>
[platform/upstream/dbus.git] / ChangeLog
1 2007-07-24  Richard Hughes  <richard@hughsie.com>
2
3         * configure.in:
4         Check for -Wl,--gc-sections so we can really reduce the size of the
5         setuid binary.
6
7 2007-07-24  Richard Hughes  <richard@hughsie.com>
8
9         * bus/activation.c: (handle_activation_exit_error),
10         (babysitter_watch_callback):
11         Map the child exit status integer to a proper dbus error.
12
13 2007-07-24  Richard Hughes  <richard@hughsie.com>
14
15         * bus/bus.c: (process_config_first_time_only),
16         (process_config_every_time), (bus_context_unref),
17         (bus_context_get_servicehelper):
18         * bus/bus.h:
19         Add the concept of a service-helper and allow it's value to be read.
20
21 2007-07-24  Richard Hughes  <richard@hughsie.com>
22
23         * bus/activation.c: (bus_activation_entry_unref),
24         (update_desktop_file_entry):
25         Add the concept of, and read the value of user from the desktop file.
26         The user string is not required unless we are using system activation.
27
28 2007-07-24  Richard Hughes  <richard@hughsie.com>
29
30         * bus/activation.c:
31         * bus/desktop-file.h:
32         Move the defines into the header file, as we use these in the lauch
33         helper as well as the desktop file parsing.
34
35 2007-07-24  Richard Hughes  <richard@hughsie.com>
36
37         * bus/.cvsignore:
38         Add the autogenerated binary files.
39
40 2007-07-24  Richard Hughes  <richard@hughsie.com>
41
42         * bus/Makefile.am:
43         * bus/test.h:
44         Add the build glue for the lauch helper, and also add the launch-helper
45         OOM checks into make check. I've probably broken the build, give me 2.
46
47 2007-07-24  Richard Hughes  <richard@hughsie.com>
48
49         * bus/test-launch-helper.c: (die), (check_memleaks),
50         (test_post_hook), (bus_activation_helper_oom_test), (main):
51         Add a test wrapper to allow OOM checks on the launch helper.
52
53 2007-07-24  Richard Hughes  <richard@hughsie.com>
54
55         * bus/activation-helper-bin.c: (convert_error_to_exit_code),
56         (main):
57         * bus/activation-helper.c: (desktop_file_for_name),
58         (clear_environment), (check_permissions), (check_service_name),
59         (get_parameters_for_service), (switch_user),
60         (exec_for_correct_user), (check_bus_name), (get_correct_parser),
61         (launch_bus_name), (check_dbus_user), (run_launch_helper):
62         * bus/activation-helper.h:
63         Add the initial launch-helper. This is split into a main section and a
64         binary loader that allows us to lauch the main section in another test
65         harness to do stuff like OOM testing. No build glue yet.
66
67 2007-07-24  Richard Hughes  <richard@hughsie.com>
68
69         * bus/Makefile.am:
70         * bus/config-parser.c: (bus_config_parser_unref),
71         (start_busconfig_child), (bus_config_parser_end_element),
72         (servicehelper_path), (bus_config_parser_content),
73         (bus_config_parser_finished),
74         (bus_config_parser_get_servicehelper),
75         (test_default_session_servicedirs),
76         (test_default_system_servicedirs), (bus_config_parser_test):
77         * bus/config-parser.h:
78         Make the config-parser code use the common config code.
79         Also add the session and systemdirs stuff, and make the config parser
80         aware of the servicehelper field.
81
82 2007-07-24  Richard Hughes  <richard@hughsie.com>
83
84         * bus/system.conf.in:
85         Add new servicehelper fields to the default system.conf file.
86
87 2007-07-24  Richard Hughes  <richard@hughsie.com>
88
89         * bus/config-parser-trivial.c: (service_dirs_find_dir),
90         (service_dirs_append_link_unique_or_free), (bus_config_parser_new),
91         (bus_config_parser_unref), (bus_config_parser_start_element),
92         (bus_config_parser_end_element), (bus_config_parser_content),
93         (bus_config_parser_finished), (bus_config_parser_get_user),
94         (bus_config_parser_get_type), (bus_config_parser_get_service_dirs),
95         (check_return_values), (do_load), (check_loader_oom_func),
96         (process_test_valid_subdir), (make_full_path), (check_file_valid),
97         (bus_config_parser_trivial_test):
98         * bus/config-parser-trivial.h:
99         Add a security sensitive stripped down config parser for the setuid
100         launcher. This file only reads what it needs, and doesn't try to do
101         anything remotely clever like including external files.
102         It is not intended to validate the config file; it is expected that
103         config-parser will do that before the setuid program tries to read it.
104
105 2007-07-24  Richard Hughes  <richard@hughsie.com>
106
107         * bus/config-parser-common.c:
108         (bus_config_parser_element_name_to_type),
109         (bus_config_parser_element_type_to_name):
110         * bus/config-parser-common.h:
111         We don't want to run the whole config parser with all it's deps in the
112         setuid program. We need to implement a stripped down config parser just
113         for the launcher, and to do so I need some common functions and
114         defines; add them here.
115
116 2007-07-24  Richard Hughes  <richard@hughsie.com>
117
118         * dbus/dbus-sysdeps-unix.c:
119         (_dbus_get_standard_system_servicedirs):
120         * dbus/dbus-sysdeps-win.c:
121         Provide a way to get the standard system servicedirs, just like we do
122         for the session service dirs. These should be seporate, as there may
123         be a security issue starting up some session stuff as root.
124         The use-case for the same binary starting up per-system _and_
125         per-session is also not valid.
126
127 2007-07-24  Richard Hughes  <richard@hughsie.com>
128
129         * bus/dbus-daemon.1.in:
130         Add standard_system_servicedirs and servicehelper into the man file
131         and explain what each does.
132
133 2007-07-24  Richard Hughes  <richard@hughsie.com>
134
135         * doc/busconfig.dtd:
136         Add servicehelper into the dtd, it will soon be a valid part of the
137         config file.
138
139 2007-07-24  Richard Hughes  <richard@hughsie.com>
140
141         * dbus/dbus-spawn.c: (read_data),
142         (_dbus_babysitter_get_child_exit_status):
143         * dbus/dbus-spawn.h:
144         Add a function so we can get access to the exit status of the launch
145         helper.
146         By providing the return code and not the error we can leave the
147         'what does this mean?' to the bus launch code and not include it in the
148         dbus directory.
149
150 2007-07-24  Richard Hughes  <richard@hughsie.com>
151
152         * bus/activation-exit-codes.h:
153         Add defines which specify the output codes of the launch helper.
154         We have to use exit codes as this is the only way we can return failure
155         type without going grotty things like redirecting possibly-nonsecure
156         stderr into the error.
157
158 2007-07-24  Richard Hughes  <richard@hughsie.com>
159
160         * dbus/dbus-protocol.h:
161         Add new error names needed for the launch helper.
162
163 2007-07-24  Richard Hughes  <richard@hughsie.com>
164
165         * dbus/dbus-sysdeps.c: (_dbus_clearenv):
166         * dbus/dbus-sysdeps.h:
167         Add a wrapper for clearenv.
168
169 2007-07-24  Richard Hughes  <richard@hughsie.com>
170
171         * doc/system-activation.txt:
172         Add design document for the system activation parts. I'll shortly be
173         committing many patches that add system activation using a setuid
174         launcher into CVS, so expect things to be broken for a few hours.
175
176 2007-07-19  Ralf Habacker  <ralf.habacker@freenet.de>
177
178         * cmake/modules/FindKDEWIN.cmake: fixed comment
179         * cmake/modules/FindKDEWIN32.cmake: removed obsolate cmake module
180
181 2007-07-18  Havoc Pennington  <hp@redhat.com>
182
183         * dbus/dbus-message.c (dbus_message_get_cached)
184         (dbus_message_cache_or_finalize): don't mess with message from
185         message cache outside of the cache lock. Bug #9164 from Jonathan
186         Matthew.
187
188 2007-07-13  Havoc Pennington  <hp@redhat.com>
189
190         * Add indent-tabs-mode: nil to all file headers.
191
192 2007-07-12  Havoc Pennington  <hp@redhat.com>
193
194         * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): invert the test
195         for parsing hex as double to be sure it fails to work
196
197         * dbus/dbus-sysdeps.c (_dbus_string_parse_double): don't allow hex numbers.
198
199 2007-07-10  Havoc Pennington  <hp@redhat.com>
200
201         * dbus/dbus-connection.c (struct DBusConnection): Fix from Olivier
202         Hochreutiner to avoid trying to protect individual bits in a word
203         with different locks (make dispatch_acquired and io_path_acquired
204         dbus_bool_t rather than bitfields)
205
206 2007-07-09  Ralf Habacker  <ralf.habacker@freenet.de>
207
208         * dbus/dbus-sysdeps-win.c,dbus-sysdeps-win.h,dbus-sysdeps-win-util.c,
209         dbus-sysdeps-spawn-win.c: synced with windbus sources 
210
211 2007-07-07  Ralf Habacker  <ralf.habacker@freenet.de>
212
213         * dbus/dbus-sysdeps-win.c 
214                 (_dbus_getsid): remove unused jump label
215                 (_dbus_read_credentials_socket): _dbus_string_init could fail, 
216                 check initialisation
217                 (_dbus_get_working_dir, _dbus_init_working_dir): remove unused 
218                         functions
219
220 2007-07-04  Ralf Habacker  <ralf.habacker@freenet.de>
221
222         * cmake/modules/FindKDEWIN.cmake: search in <program files dir>\win32libs 
223         for windows supplementary packages too
224
225 2007-06-30  Ralf Habacker  <ralf.habacker@freenet.de>
226
227         * cmake/dbus/CMakeLists.txt: handle userdb as unix file
228
229 2007-06-30  Ralf Habacker  <ralf.habacker@freenet.de>
230
231         * dbus/dbus-sysdeps-win.c,dbus/dbus-sysdeps-win.h: removed obsolate 
232         DBusUserInfo code
233
234 2007-06-30  Ralf Habacker  <ralf.habacker@freenet.de>
235
236         * dbus/dbus-sysdeps-win.c (_dbus_daemon_init): reduced compiler warnings
237
238 2007-06-23  Ralf Habacker  <ralf.habacker@freenet.de>
239
240         * dbus/dbus-auth-script.c (_dbus_auth_script_run): added UNIX_ONLY and 
241         WIN_ONLY commands for auth scripts
242         * test/data/auth/external-root.auth-script: limit execution to unix
243
244 2007-06-21  Havoc Pennington  <hp@redhat.com>
245
246         * dbus/dbus-tranport.c (auth_via_default_rules): made the verbose spam
247         cross-platform
248
249 2007-06-21  Havoc Pennington  <hp@redhat.com>
250
251         * dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should
252         not be the same as before, the ABI has never been declared stable
253         on Windows and 2) do not commit to cross-platform files without
254         posting the exact patch to the mailing list
255         
256         * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed
257         out before, either 0xff needs to work on both platforms, or none
258         of the dbus code can rely on it working. That means the options
259         are 1) audit the code for anywhere that relies on 0xff working, if
260         none found ideally add a test that it *doesn't* work and make unix
261         reject it explicitly, but in any case this test would go away or
262         2) make it work on Windows also, then we don't have to figure out 
263         whether we rely on it.
264
265         And in either case, post the exact patch to the mailing list and
266         don't just commit.
267
268 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
269
270         * cmake/CMakeLists.txt: added VERSION_PATCH to be able to 
271         distinguish win32 binary release from dbus versioning
272
273 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
274
275         * dbus/dbus-sysdeps-win.c: deleted local DBusCredentials structure
276             (_dbus_getsid): new function
277             (_dbus_read_credentials_socket): used correct function
278             (_dbus_append_user_from_current_process, 
279                 _dbus_credentials_add_from_current_process): added real 
280                     sid reading
281             (_dbus_credentials_parse_and_add_desired,_dbus_parse_uid): 
282                 deleted
283
284 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
285
286         * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): don't check 
287         0xff as floating point, this isn't supported on win32 math 
288         implementation
289
290 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
291
292         * dbus/dbus-sysdeps-win.c (_dbus_homedir_from_username, 
293         _dbus_homedir_from_current_process, _dbus_append_desired_identity): 
294         removed obsolate functions
295
296 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
297
298         * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-util-win.c, 
299         dbus/dbus-sysdeps-win.h: disabled uid/sid conversation stuff
300         implementation by Peter Kuemmel 
301
302 2007-06-21  Ralf Habacker  <ralf.habacker@freenet.de>
303
304         * dbus/dbus-watch.c (dbus_watch_get_fd): this function is 
305         deprecated and its behavior should be as before until all 
306         client code is migrated. 
307
308 2007-06-19  Ralf Habacker  <ralf.habacker@freenet.de>
309
310         * dbus/dbus-sysdeps-util-win.c, tools/dbus-launch-win.c: 
311         msvc7.1 fixes by Jaroslaw Staniek tested with mingw 
312
313 2007-06-19  Ralf Habacker  <ralf.habacker@freenet.de>
314
315         * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-spawn-win.c, 
316         dbus/dbus-sysdeps-win.h: disabled DBusSocket implementation
317         by Peter Kuemmel 
318
319 2007-06-18  Ralf Habacker  <ralf.habacker@freenet.de>
320
321         * dbus-win.patch: removed obsolate patches
322
323 2007-06-18  Havoc Pennington  <hp@redhat.com>
324
325         * configure.in: bump version to 1.1.2 so CVS is higher than last
326         release (this is not the 1.1.2 release)
327
328 2007-06-18  Havoc Pennington  <hp@redhat.com>
329
330         * Release 1.1.1
331
332 2007-06-18  Havoc Pennington  <hp@redhat.com>
333
334         * doc/dbus-specification.xml: document org.freedesktop.DBus.GetId()
335
336         * bus/driver.c (bus_driver_handle_get_id): implement org.freedesktop.DBus.GetId()
337
338         * bus/bus.c (bus_context_new): generate a unique ID for each bus context
339
340         * dbus/dbus-connection.c (dbus_connection_get_server_id): new function
341
342         * dbus/dbus-bus.c (dbus_bus_get_id): new function
343
344         * dbus/dbus-server.c (dbus_server_get_id): new function
345
346 2007-06-18  Havoc Pennington  <hp@redhat.com>
347
348         * dbus/dbus-sysdeps-unix.c (_dbus_read_credentials_socket): clean
349         this up a little bit, to try and understand why telnet'ing to a
350         server and sending a non-nul byte didn't disconnect immediately;
351         now it seems that it does disconnect immediately as it should,
352         though I don't understand what has changed.
353
354 2007-06-18  Havoc Pennington  <hp@redhat.com>
355
356         * dbus/dbus-watch.c (dbus_watch_get_socket)
357         (dbus_watch_get_unix_fd): new API to match DBusConnection
358         (dbus_watch_get_fd): deprecate this
359
360         Throughout: just s/dbus_watch_get_fd/dbus_watch_get_socket/g for
361         now since all the transports use sockets anyway
362         
363 2007-06-16  Ralf Habacker  <ralf.habacker@freenet.de>
364
365         * dbus/dbus-macros.h, dbus/dbus-message.c, 
366         dbus/dbus-message.h: renamed DBUS_GNUC_DEPRECATED 
367         to DBUS_DEPRECATED and extended to msvc compiler
368
369 2007-06-15  Ralf Habacker  <ralf.habacker@freenet.de>
370
371         * cmake/CMakeLists.txt: use local include header first
372
373         * dbus/dbus-sysdeps-win.c: mingw fix of DBusCredential struct
374
375 2007-06-15  Ralf Habacker  <ralf.habacker@freenet.de>
376
377         * cmake/ConfigureChecks.cmake,cmake/config.h.cmake: 
378         added check for HAVE_ERRNO_H
379
380         * cmake/dbus/CMakeLists.txt: added missing files 
381         
382         * dbus/dbus-transport-win.c/.h: new files
383
384         * dbus/dbus-sysdeps-win.c,.h: added required _unix functions 
385         to make dbus compilable on win32 
386         
387         * dbus/dbus-sysdeps-win-utils.c,.h: moved some functions to 
388         dbus-sysdeps-win.c
389         
390         * dbus-win.patch: removed applied or obsolate patches
391         
392         Note: dbus-win32 is now compilable, no guarantee that it runs 
393         without any problems 
394
395 2007-06-15  Havoc Pennington  <hp@redhat.com>
396
397         * dbus/dbus-sysdeps-unix.c (_dbus_append_session_config_file)
398         (_dbus_append_system_config_file): new functions
399
400         * bus/main.c (main): use _dbus_append_system_config_file() and 
401         _dbus_append_session_config_file()
402
403         * dbus/Makefile.am (INCLUDES): move DBUS_SYSTEM_CONFIG_FILE and
404         DBUS_SESSION_CONFIG_FILE into this makefile
405
406 2007-06-15  Havoc Pennington  <hp@redhat.com>
407
408         * dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero)
409         (_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr)
410         (_dbus_strerror_from_errno): family of functions to abstract
411         errno, though these are somewhat bogus (really we should make our
412         socket wrappers not use errno probably - the issue is that any
413         usage of errno that isn't socket-related probably is not
414         cross-platform, so should either be in a unix-only file that can
415         use errno directly, or is a bug - these general errno wrappers
416         hide issues of this nature in non-socket code, while
417         socket-specific API changes would not since sockets are allowed
418         cross-platform)
419
420 2007-06-14  Havoc Pennington  <hp@redhat.com>
421
422         * bus/dispatch.c (check_get_connection_unix_process_id): mop up
423         getpid() (noticed by Peter KKümmel) and adapt the test to 
424         expect a "pid unknown" error when running on Windows.
425
426 2007-06-14  Havoc Pennington  <hp@redhat.com>
427
428         * dbus/dbus-sysdeps-unix.c (_dbus_credentials_parse_and_add_user):
429         delete this function since it was effectively the same as
430         _dbus_credentials_add_from_username()
431
432 2007-06-14  Havoc Pennington  <hp@redhat.com>
433
434         * dbus/dbus-auth.c: adapt to keyring changes
435
436         * dbus/dbus-keyring.c: change to avoid using user ID and home
437         directory directly; instead use a
438         keyring-location-from-credentials function in dbus-sysdeps
439
440         * fix to use _dbus_append_user_from_current_process() instead of 
441         _dbus_username_from_current_process() or _dbus_append_desired_identity().
442         
443 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
444
445         * reverted global rename of function _dbus_username_from_current_process. 
446         It needs too much tests to verify that the change does not break anything. 
447         I had overseen that the signatures are different and requires non
448         trivial changes. 
449         This is one *major* disadvantage of emulating oop functionality with c. 
450         You are responsible for cleaning every object on every function return point
451         which could be a nightmare if you are not working with dbus all the days.
452
453 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
454     
455         * dbus/dbus-auth.c (handle_client_initial_response_cookie_sha1_mech): 
456         fixed usage of _dbus_append_desired_identity()
457
458         * dbus/dbus-sysdeps.h (_dbus_username_from_current_process): removed prototype
459
460 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
461     
462         * dbus/dbus-sysdeps.c: moved global lock system_users from dbus-userdb.c
463
464 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
465     
466         * global rename of function _dbus_username_from_current_process
467         to _dbus_append_desired_identity. 
468         Approved by Havoc Pennington
469
470 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
471
472         * dbus/dbus-sysdeps-win.c: disabled DBusUserInfo related code
473                 (_dbus_append_desired_identity, _dbus_windows_user_is_process_owner):
474                 new win32 functions as counterpart of unix related 
475                 (_dbus_send_credentials_socket,_dbus_read_credentials_socket): 
476                 renamed from ..._unix_socket
477                 (_dbus_send_credentials_unix_socket): removed obsolate function
478         
479         * dbus/dbus-sysdeps-win-util.c: disabled DBusGroupInfo related code
480                 (_dbus_verify_daemon_user,_dbus_change_to_daemon_user): 
481                     new win32 functions as counterpart of unix related
482         
483 2007-06-14  Simon McVittie  <simon.mcvittie@collabora.co.uk>
484
485         * doc/dbus-specification.xml: say the protocol version is 1 instead of
486         0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME
487         about removing protocol version from messages (as per Havoc's comment
488         on that bug)
489
490 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
491
492         * dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches): 
493         new win32 functions as counterpart of unix related
494
495 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
496         
497         * cmake/modules/FindKDEWIN.cmake,
498           cmake/modules/FindKDEWIN_Packager.cmake, 
499           cmake/modules/Win32Macros.cmake: new files from the 
500           kdewin32 project
501         * cmake/CMakeLists.txt: cleaned support for kdewin installer and 
502           win32 explorer wrapper
503
504 2007-06-13  Havoc Pennington  <hp@redhat.com>
505         
506         * dbus/dbus-message.c (dbus_message_iter_open_container): Fix
507         broken return_if_fail (kind of scary that test suite does not
508         cover this)
509
510 2007-06-13  Havoc Pennington  <hp@redhat.com>
511
512         * dbus/dbus-server-socket.c (_dbus_server_listen_socket): support
513         all_interfaces=true|false for tcp servers
514
515         * dbus/dbus-sysdeps-unix.c (_dbus_listen_tcp_socket): support
516         inaddr_any flag
517
518         * bus/selinux.c: fix some missing includes
519
520         * dbus/dbus-server-socket.c (_dbus_server_listen_socket): allow
521         port to simply be omitted in addition to specifying 0
522
523 2007-06-13  Havoc Pennington  <hp@redhat.com>
524
525         * configure.ac, bus/selinux.c, dbus/dbus-sysdeps-unix-util.c: add
526         libaudit support, no clue what this means really but now we have
527         it. Patches from Fedora package.
528
529         * bus/bus.c (bus_context_new): move selinux initialization after
530         changing to daemon user, patch from Fedora package
531
532         * dbus/dbus-transport.c (auth_via_unix_user_function): fix a typo
533
534 2007-06-12  Havoc Pennington  <hp@redhat.com>
535
536         * dbus/dbus-message.c (dbus_message_iter_open_container): improve
537         the checks/warnings for contained_signature a bit
538
539 2007-06-12  Havoc Pennington  <hp@redhat.com>
540         
541         * dbus/dbus-marshal-recursive.c (write_or_verify_typecode):
542         improve the warning a bit if you write extra data into a message
543
544 2007-06-12  Havoc Pennington  <hp@redhat.com>
545
546         * dbus/dbus-auth.c (sha1_handle_second_client_response)
547         (handle_server_data_anonymous_mech): add the process ID from
548         socket credentials, if available, even if not using EXTERNAL
549
550         * dbus/dbus-transport.c (auth_via_default_rules): support
551         allow_anonymous flag
552
553         * dbus/dbus-connection.c (dbus_connection_get_is_anonymous)
554         (dbus_connection_set_allow_anonymous): new API for controlling
555         anonymous access
556
557 2007-06-09  Havoc Pennington  <hp@redhat.com>
558
559         * dbus/dbus-string.c (_dbus_string_pop_line): fix this not to
560         think an empty line is the end of the file.
561         Also, fix some whitespace.
562
563         * dbus/dbus-string-util.c: add more tests for
564         _dbus_string_pop_line() revealing that it thinks an empty line is
565         the end of the file, which broke dbus-auth-script.c so 
566         it didn't really run the scripts
567
568         * dbus/dbus-auth.c: add ANONYMOUS mechanism
569
570         * dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect
571         an empty/no-op auth script; add commands to check that we have or
572         don't have the expected credentials     
573
574 2007-06-09  Havoc Pennington  <hp@redhat.com>
575
576         * bus/policy.c (bus_policy_create_client_policy): gracefully
577         continue if the connection has no unix user - just don't apply 
578         any unix user dependent rules.
579
580         * bus/config-parser.c: remove dbus-userdb.h usage
581
582         * bus/bus.c: remove dbus-userdb.h usage
583
584         * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated):
585         support Windows user function; also, fix the logic for checking
586         auth as root in the default auth code (broken in the previous
587         commit)
588
589         * dbus/dbus-connection.c
590         (dbus_connection_set_windows_user_function): new function
591         (dbus_connection_get_windows_user): new function
592
593 2007-06-09  Havoc Pennington  <hp@redhat.com>
594
595         * bus/dispatch.c (check_get_connection_unix_process_id): adapt
596         since sysdeps-unix.h stuff isn't included anymore
597
598         * bus/bus.c (bus_context_new): use more abstract functions to
599         change user, so they can be no-ops on Windows
600
601         * dbus/dbus-credentials.c, dbus/dbus-credentials.h,
602         dbus/dbus-credentials-util.c: new files containing a fully opaque
603         DBusCredentials data type to replace the old not opaque one.
604
605         * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on
606         windows
607
608         * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean
609         up the uses of it in bus/*.c and factor out the parts of 
610         cookie auth that depend on it
611         
612 2007-06-07  Havoc Pennington  <hp@redhat.com>
613
614         * dbus/dbus-message.c: improve some docs related to reading values
615         from a message iter
616
617 2007-06-02  Ralf Habacker  <ralf.habacker@freenet.de>
618
619         * cmake: added cygwin compile support
620
621 2007-06-01  Ralf Habacker  <ralf.habacker@freenet.de>
622
623         * tools/dbus-launch-win.c: new file, replaces script wrapper on win32.
624
625         * cmake/dbus-launch.bat.cmake: removed obsolate file
626
627 2007-05-31  Ralf Habacker  <ralf.habacker@freenet.de>
628
629         * bus/main.c (main): uses _dbus_get_config_file_name() to detect 
630         session.conf location on win32. 
631
632         * dbus-sysdeps-win.h (_dbus_get_config_file_name,_dbus_file_exists): 
633         new prototyp, undefined interface after including windows.h because 
634         it makes trouble when a paramater is named interface.
635
636         * dbus-sysdeps-win.c (_dbus_get_install_root,
637         _dbus_get_config_file_name,_dbus_file_exists):  new functions.
638
639 2007-05-27  Ralf Habacker  <ralf.habacker@freenet.de>
640
641         * bus/policy.c,dbus/dbus-internals.c: fixed inconsistant line endings 
642         as reported by Peter Kümmel.
643
644 2007-05-25  John (J5) Palmieri  <johnp@redhat.com>
645
646         * Released 1.1.0
647
648 2007-05-25  John (J5) Palmieri  <johnp@redhat.com>
649
650         * Split NEWS and ChangeLog into a .pre-1-0 file as per HACKING
651         We forgot to do this during the 1.0 release and it makes sense
652         now as we get ready to release the first 1.1.0 development tarball
653
654 2007-05-25  John (J5) Palmieri  <johnp@redhat.com>
655
656         * create directory test/data/valid-config-files/session.d so that
657         make check passes
658
659 2007-05-25  John (J5) Palmieri  <johnp@redhat.com>
660
661         * INSTALL: remove dependancies for bindings since they no longer
662         are a part of core
663
664 2007-05-25  Ralf Habacker  <ralf.habacker@freenet.de>
665
666         * dbus/dbus-server-win.c,dbus/dbus-server-win.h: new file 
667         with empty function _dbus_server_listen_platform_specific(). 
668
669         * dbus/dbus-server.c (listen_funcs): uses 
670         _dbus_server_listen_platform_specific on any platform.
671
672 2007-05-25  Ralf Habacker  <ralf.habacker@freenet.de>
673
674         * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): not getting 
675         user info from a domain controller isn't an error, the computer 
676         may run in a non domain context. 
677
678 2007-05-25  Ralf Habacker  <ralf.habacker@freenet.de>
679
680         * dbus/dbus-sysdeps-win.c (_dbus_full_duplex_pipe): fixed assertation.
681
682 2007-05-24  Simon McVittie  <simon.mcvittie@collabora.co.uk>
683
684         * bus/config-parser.c (test_service_dir_matches): fixed ordering for unix.
685
686         * bus/config-parser.c (test_default_session_servicedirs): made allocation 
687         of _progs platform independent.
688
689 2007-05-23  Havoc Pennington  <hp@redhat.com>
690
691         * bus/Makefile.am (install-data-hook): create session.d
692
693         * bus/session.conf.in: add session.d for the session bus, so
694         security policy can be extended
695
696 2007-05-22 Ralf.Habacker <ralf.habacker@freenet.de>
697
698         * cmake/CMakeLists.txt: fixed creating of TEST_..._BINARY to make 
699         bus-test able to find the binaries.
700
701 2007-05-21 Simon McVittie  <simon.mcvittie@collabora.co.uk>
702
703         * acinclude.m4, configure.in: In recent autotools, ${datadir} is
704         defined in terms of ${datarootdir}, so EXPANDED_DATADIR needs to be
705         expanded recursively. Rather than fixing configure.in to do this, I
706         grabbed the AS_AC_EXPAND macro from autostars.sf.net, which seems to be
707         commonly used.
708
709 2007-05-21 Simon McVittie  <simon.mcvittie@collabora.co.uk>
710
711         * update-dbus-docs.sh: Assorted improvements:
712         - Default user if $FDUSER is not set is the ssh default
713           (set in ~/.ssh/config or based on the local username), not a
714           hard-coded "johnp"
715         - Temporary checkout directory is created securely (preventing symlink
716           attacks), if mktemp(1) is available
717         - Use make -C rather than cd && make && cd ..
718
719 2007-05-21 Simon McVittie  <simon.mcvittie@collabora.co.uk>
720
721         * HACKING: Point to correct mailing list
722
723 2007-05-21 Simon McVittie  <simon.mcvittie@collabora.co.uk>
724
725         * doc/dbus-specification.xml: explicitly specify that STRING cannot
726         contain embedded NULs.
727
728 2007-05-20 Ralf.Habacker  <ralf.habacker@freenet.de>
729
730         * dbus/dbus-internal.c: fix inline problem on win32.
731
732 2007-05-20 Ralf.Habacker  <ralf.habacker@freenet.de>
733
734         * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): not reaching 
735         domain controller isn't an error, converted error message to verbose 
736         message.
737
738 2007-05-19 Ralf.Habacker  <ralf.habacker@freenet.de>
739
740         * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): disabled 
741         tests not running on wince.
742
743 2007-05-19 Ralf.Habacker  <ralf.habacker@freenet.de>
744
745         * dbus/dbus-internals.c (_dbus_verbose_init): win32 requires 'varname=' 
746         to unset a environment variable. 
747
748 2007-05-19 Ralf.Habacker  <ralf.habacker@freenet.de>
749
750         * dbus/dbus-sysdeps.c (_dbus_setenv): win32 requires 'varname=' 
751         to unset a environment variable. 
752
753 2007-05-19 Ralf.Habacker  <ralf.habacker@freenet.de>
754
755         * bus/policy.c (bus_policy_create_client_policy): 
756         win32 temporary fix until the userdb stuff is ported completly.
757
758 2007-05-19  Ralf.Habacker  <ralf.habacker@freenet.de>
759
760         * dbus/dbus-server.c (listen_funcs): 
761         _dbus_server_listen_platform_specific is empty on win32, 
762         limited to unix only.
763
764         * dbus/dbus-server.c (valid_addresses): limit unix 
765         only addresses to unix. 
766
767 2007-05-18  Havoc Pennington  <hp@redhat.com>
768
769         * doc/dbus-specification.xml: add a GetAll to the Properties
770         interface.
771
772 2007-05-17 Ralf.Habacker  <ralf.habacker@freenet.de>
773  
774         * bus\config-parser.c (test_default_session_servicedirs):
775         win32 fix.
776
777 2007-05-17 Ralf.Habacker  <ralf.habacker@freenet.de>
778  
779         * configure.in: define constant DBUS_UNIX.
780
781 2007-05-14  Ralf Habacker <ralf.habacker@freenet.de>
782
783         * dbus/dbus-sysdeps-win.c (_dbus_printf_string_upper_bound):
784         compile fix for MS Platform SDK 6 
785         patch from Michael Luschas <mluschas@gmail.com>
786
787 2007-05-10  John (J5) Palmieri <johnp@redhat.com>
788
789         * dbus-1.pc.in: add daemondir to pc file
790         patch from Brian Cameron <brian.cameron at sun.com>
791
792 2007-05-04  Simon McVittie <simon.mcvittie@collabora.co.uk>
793
794         * doc/dbus-specification.xml: mention the reserved o.fd.DBus.Local
795         interface and the corresponding /o/fd/DBus/Local object path;
796         describe them as reserved and forbid using them in a sent message,
797         mentioning that in the reference implementation this will cause the
798         connection to be dropped. Patch approved by Havoc.
799
800 2007-04-28  Ralf Habacker <ralf.habacker@freenet.de>
801
802         * cmake/: don't install test applications and service files,
803         moved CMAKE_DEBUG_POSTFIX to top level CMakeLists.txt
804
805 2007-04-27  Havoc Pennington  <hp@redhat.com>
806
807         * dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from
808         Tobias Nygren, checking pointer to fd vs. 0 rather than checking
809         the fd itself
810
811 2007-04-26 Ralf Habacker  <ralf.habacker@freenet.de>
812
813         * cmake/: added debug postfixes to debug exe's for 
814         easier debugging.
815         * dbus\dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error): 
816         print error code in case no string message is available.
817
818 2007-04-06 Simon McVittie <simon.mcvittie@collabora.co.uk>
819
820         * dbus/dbus-message-util.c, dbus/dbus-message.c,
821         dbus/dbus-message.h: Add API to convert a DBusMessage to/from a
822         byte array. Patch from Dafydd Harries <dafydd.harries@collabora.co.uk>,
823         approved by Havoc Pennington.
824
825 2007-04-03  Timo Hoenig  <thoenig@suse.de>
826
827         * dbus/dbus-address.c (dbus_parse_address): Do not accept zero-
828           length address.
829         * dbus/dbus-address.c (_dbus_address_test): Add test for zero-
830           length address.
831
832 2007-03-25 Ralf.Habacker  <ralf.habacker@freenet.de>
833
834         * cmake/dbus/CMakeLists.txt: debug postfix also for mingw.
835
836 2007-03-16 Ralf.Habacker  <ralf.habacker@freenet.de>
837
838         * cmake/modules/FindExpat.cmake: fix package detection on win32.
839
840         * README.win: update install instructions. 
841
842 2007-03-16 Ralf.Habacker  <ralf.habacker@freenet.de>
843
844         * dbus/dbus-sysdeps.h (_dbus_split_paths_and_append):
845         new prototyp
846         (_DBUS_PATH_SEPARATOR): new macro. 
847
848         * dbus/dbus-sysdeps.c (_dbus_split_paths_and_append): merged 
849         from dbus/dbus-sysdeps-unix.c and dbus/dbus-sysdeps-win.c. 
850
851 2007-03-15 Ralf.Habacker  <ralf.habacker@freenet.de>
852
853         * bus/config-parser.c, bus/policy.c,  
854         bus/policy.h, bus/dbus-daemon.1.in,
855         bus/session.conf.in: added eavesdrop support 
856         for replies - patch by olli.salli at collabora.co.uk
857         approved by Havoc Pennington. 
858
859 2007-03-15 Ralf.Habacker  <ralf.habacker@freenet.de>
860
861         * dbus\dbus-sysdeps-win-thread.c: renamed to 
862         dbus-sysdeps-thread-win.c, it is a platform depending file 
863         similar to dbus-sysdeps-pthread.c.
864
865 2007-03-15 Ralf.Habacker  <ralf.habacker@freenet.de>
866
867         * cmake\doc\CMakeLists.txt: added prelimary xml doc 
868         support, needs cmake Find script.
869
870 2007-03-14 Ralf.Habacker  <ralf.habacker@freenet.de>
871
872         * cmake: add doxygen support
873
874 2007-03-14  Ralf.Habacker  <ralf.habacker@freenet.de>
875
876         * cmake/config.h.cmake: WINCE fixes, defined DBUS_UNIX.
877
878 2007-03-13  Ralf.Habacker  <ralf.habacker@freenet.de>
879
880         * dbus/dbus-sysdeps-util-win.c (dbus_become_daemon): 
881         win32 compile fix. 
882
883 2007-03-13  Ralf.Habacker  <ralf.habacker@freenet.de>
884
885         * dbus-win.patch: removed obsolate patches. 
886
887 2007-03-13  Ralf.Habacker  <ralf.habacker@freenet.de>
888
889         * dbus/dbus-sysdeps-win.c: added zero byte sending 
890         and receiving after connection start up
891
892 2007-03-11  Havoc Pennington  <hp@redhat.com>
893
894         * tools/dbus-launch.c (do_close_stderr): fix C89 problem and
895         formatting problem
896
897         * Mostly fix the DBusPipe mess.
898         - put line break after function return types
899         - put space before parens
900         - do not pass structs around by value
901         - don't use dbus_strerror after calling supposedly cross-platform
902         api
903         - don't name pipe variables "fd"
904         - abstract special fd numbers like -1 and 1
905
906 2007-03-12  Ralf Habacker  <ralf.habacker@freenet.de>
907
908         * dbus/dbus-sysdeps-win.h, dbus/dbus-sysdeps-win.c, 
909         dbus/dbus-sysdeps-util-win.c: renamed functions 
910         _dbus_xxx_file() to _dbus_file_xxx() to reflect 
911         struct name DBusFile. 
912
913 2007-03-12  Ralf Habacker  <ralf.habacker@freenet.de>
914
915         * dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon):
916         fix _dbus_pid_fd check. 
917
918 2007-03-10  Ralf Habacker  <ralf.habacker@freenet.de>
919
920         * tools/dbus-print-message.c (print_message):
921         added printing of the reply serial to method returns and 
922         errors, so you can actually figure out the message/reply 
923         pairs - patch by olli.salli at collabora.co.uk.
924
925 2007-03-10  Ralf Habacker  <ralf.habacker@freenet.de>
926
927         * dbus-win.patch: removed committed patches. 
928
929 2007-03-10  Ralf Habacker  <ralf.habacker@freenet.de>
930
931         * bus/bus.c, bus/bus.h, bus/main.c, bus/test.c,
932         dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-util-unix.c,
933         dbus/dbus-sysdeps-util-win.c, dbus/dbus-sysdeps-win.c,
934         dbus/dbus-sysdeps.h: renamed _dbus_xxx_pipe to _dbus_pipe_xxx,
935         completed _dbus_pipe support. 
936
937 2007-03-10  Ralf Habacker  <ralf.habacker@freenet.de>
938
939         * dbus/dbus-sysdeps.h (_dbus_listen_tcp_socket):
940         changed type or port to pointer, because the port is given back.
941
942         * dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket):
943         implemented returning tcp port. Skipping port parameter
944         and non integer port values in config <listen> statement
945         needs more effort.
946
947         * dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-win.c
948         (_dbus_listen_tcp_socket): return the real used tcp port.
949
950         * bus/dbus-daemon.1.in: added <listen> tcp examples
951
952 2007-03-09  Ralf Habacker  <ralf.habacker@freenet.de>
953
954         * cmake/config.h.cmake: win32 msvc bug fix
955
956 2007-03-09  Ralf Habacker  <ralf.habacker@freenet.de>
957
958         * cmake/config.h.cmake: fixed DBUS_WINxx defines,
959         using _WINCE does not work.
960
961 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
962
963         * dbus-win.patch: removed _dbus_write_pipe() patch, it is now 
964         committed.
965
966 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
967
968         * bus/bus.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps.h:
969         rename pipe related write() function calls to _dbus_write_pipe().
970
971 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
972
973         * dbus-win.patch: added bus/config-loader-libexpat.c patch, 
974         uses DBUS_WIN for alls win32 related #ifdefs, 
975         some minor cleanups
976
977 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
978
979         * dbus-win.patch: updated patch for bus/dispatch.c.
980
981 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
982
983         * dbus-win.patch: dbus-connection.c (dbus_connection_get_unix_user,
984         dbus_connection_get_unix_process_id): Let return them valid user id's, 
985         otherwise bus-test fails. How to replace on win32 ?.
986         
987         * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir):
988         fix memory leak.
989
990 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
991
992         * dbus/dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error):
993         use dbus friendly error name.
994         (fill_win_user_info_homedir): print user name in error case too.
995
996 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
997
998         * cmake/ConfigureChecks.cmake: fixed socketpair check
999
1000 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
1001
1002         * bus/dispatch.c: disabled segfault test on win32 for now
1003
1004 2007-03-08  Ralf Habacker  <ralf.habacker@freenet.de>
1005
1006         * configure.in, cmake/ConfigureChecks.cmake: added check 
1007         for setrlimit. 
1008         * test/test-segfault.c: only include setrlimit stuff only 
1009         when available.  
1010
1011 2007-03-07  Ralf Habacker  <ralf.habacker@freenet.de>
1012
1013         * test/test-segfault.c: unix compile fix.
1014         * dbus-win.patch: removed obsolate patches.
1015
1016 2007-03-07  Ralf Habacker  <ralf.habacker@freenet.de>
1017
1018         * bus/activation.c: removed obsolate include header.
1019         * test/test-segfault.c: win32 compile fix, rlimit 
1020         isn't available on win32.
1021         * dbus-win.patch: removed some more patches, they
1022         are applied or obsolate 
1023
1024 2007-03-06  Ralf Habacker  <ralf.habacker@freenet.de>
1025
1026         * bus-win.patch: fixes unix listen problems, dbus-test 
1027         now runs.
1028
1029 2007-03-06  Ralf Habacker  <ralf.habacker@freenet.de>
1030
1031         * cmake/dbus/CMakeLists.txt,cmake/bus/CMakeLists.txt,
1032         cmake/CMakeLists.txt: win32 compile fix
1033
1034 2007-03-04  Ralf Habacker  <ralf.habacker@freenet.de>
1035
1036         * dbus-win.patch, README.win: added available win32 
1037         patches from windbus project (http://sf.net/projects/windbus)
1038
1039 2007-03-04  Ralf Habacker  <ralf.habacker@freenet.de>
1040
1041         * bus/activation.c: (bus_activation_activate_service):
1042         fixed call to _dbus_spawn_async_with_babysitter().
1043
1044 2007-03-04  Ralf Habacker  <ralf.habacker@freenet.de>
1045
1046         * dbus/dbus-spawn.c,dbus/dbus-spawn.h (_dbus_spawn_async_with_babysitter):
1047         added environment pointer as function parameter, used on win32.
1048
1049         * test/spawn-test.c: fixed call to above mentioned function.
1050
1051 2007-03-04  Ralf Habacker  <ralf.habacker@freenet.de>
1052
1053         * configure.in,test/test-sleep-forever.c,test/test-names.c: 
1054         added configure check for unistd.h.
1055
1056 2007-03-04  Ralf Habacker  <ralf.habacker@freenet.de>
1057
1058         * test/Makefile.am: fixed test data copy problem in 
1059         out of source build, when sources came from svn or cvs. 
1060
1061 2007-03-03  Ralf Habacker  <ralf.habacker@freenet.de>
1062
1063         * dbus/*-win.*,bus/*-win.*: added win32 platform related
1064         files. These files are only added to the cmake build system.  
1065         The missing dbus-win.patch file will be added later. 
1066
1067 2007-03-03  Ralf Habacker  <ralf.habacker@freenet.de>
1068
1069         * cmake: new directory, contains cmake build support.
1070         See http://www.cmake.org for more informations.
1071         Currently only unix will be buildable because some 
1072         win32 required files are still missing. 
1073
1074 2007-03-03  Thiago Macieira  <thiago@kde.org>
1075
1076         * dbus/dbus-sysdeps-unix.c: capture the dbus-launch stderr
1077         output and add it to the DBusError message we return.
1078
1079         * tools/dbus-launch.1:
1080         * tools/dbus-launch.c: Add option --close-stderr to, well,
1081         close stderr before starting dbus-daemon.
1082
1083 2007-01-31  Havoc Pennington  <hp@redhat.com>
1084
1085         * bus/dbus-daemon.1.in: write a section in the man page on running
1086         a test daemon for debugging purposes
1087
1088 2007-01-26  Havoc Pennington  <hp@redhat.com>
1089
1090         * bus/session.conf.in: override all the default limits with much
1091         higher limits on the session bus, there is no reason the session
1092         bus should have low limits
1093
1094         * bus/config-parser.c (bus_config_parser_new): increase default
1095         limits so they are less likely to be hit; in particular the max
1096         replies per connection was way too low
1097
1098 2006-01-25  Simon McVittie  <simon.mcvittie@collabora.co.uk>
1099
1100         * doc/dbus-tutorial.xml: Replace Python section of tutorial with
1101         a pointer to the tutorial maintained as part of dbus-python
1102
1103 2006-12-31  Ralf Habacker  <ralf.habacker@freenet.de>
1104
1105         * dbus/dbus-sysdeps-unix.c: unix compile fix, moved 
1106         atomic_exchange_and_add() from dbus/dbus-sysdeps.c 
1107         to here, it's used by _dbus_atomic_inc() and _dbus_atomic_dec().
1108
1109 2006-12-31  Ralf Habacker  <ralf.habacker@freenet.de>
1110
1111         * tools/dbus-monitor.c: gettimeofday() is not available 
1112         on windows so we have to provide our own. It's taken from 
1113         lgpl'd kdewin32 package. - Patches from Christian Ehrlicher
1114
1115 2006-12-31  Ralf Habacker  <ralf.habacker@freenet.de>
1116
1117         * dbus/dbus-sysdeps-unix.c: moved _dbus_atomic_inc/dec() 
1118         from dbus/dbus-sysdeps.c, windows version of _dbus_atomic_inc/dec() 
1119         is in dbus-sysdeps-win.c (not in this patch).
1120
1121         * dbus/dbus-sysdeps.h: DBusAtomic::value is long on windows to fit 
1122         with InterlockedInc/Decrement. 
1123         - Patches from Christian Ehrlicher
1124         
1125 2006-12-31  Ralf Habacker  <ralf.habacker@freenet.de>
1126
1127         * tools/dbus-send.c, tools/dbus-monitor.c: win32 compile fix.
1128
1129 2006-12-31  Ralf Habacker  <ralf.habacker@freenet.de>
1130
1131         * dbus/dbus-marshal-recursive.c (type DBusTypeReaderClass):
1132         fix mispaced const statement. - Patch from Peter Kümmel
1133
1134 2006-12-19  Ray Strode  <rstrode@redhat.com>
1135
1136         * bus/bus.c (process_config_every_time):
1137         don't overwrite existing bus context activation object
1138         until after we've checked that the new activation is
1139         valid.
1140
1141         * bus/main.c 
1142         (signal_handler), (handle_reload_watch):
1143         don't call exit() on failure, instead make do and keep
1144         going.
1145         (close_reload_pipe): new function to turn off
1146         hangup-causes-config-reload behavior if an unexpected
1147         error occurs
1148
1149 2006-12-13  Ralf Habacker  <ralf.habacker@freenet.de>
1150
1151         * dbus/dbus-sysdeps-win-thread.c (_dbus_condvar_wait_win32):
1152         correctness fix. - Patch from Christian Ehrlicher
1153
1154 2006-12-13  Ralf Habacker  <ralf.habacker@freenet.de>
1155
1156         * dbus/dbus-internals.h: msvc also knows about __FUNCTION__, 
1157         we should also use it. - Patch from Christian Ehrlicher
1158
1159 2006-12-13  Ralf Habacker  <ralf.habacker@freenet.de>
1160   
1161         * dbus-sysdeps-util.c: added win32 related tests
1162
1163 2006-12-12  Ralf Habacker  <ralf.habacker@freenet.de>
1164
1165         * dbus/dbus-string.c (_dbus_string_pop_line),
1166         bus/desktop-file.c (parse_section_start,
1167         parse_comment_or_blank,parse_key_value,): uses
1168         _dbus_string_find_eol() to support platform independent eol style.
1169
1170 2006-12-12  Ralf Habacker  <ralf.habacker@freenet.de>
1171
1172         * dbus/dbus-string.[ch] (_dbus_string_find_eol): new function. 
1173         * dbus/dbus-string-util.c (_dbus_string_test): added testcases for 
1174               _dbus_string_find_eol().
1175         Approved by: Havoc Pennington.
1176
1177 2006-12-12  Tim Dijkstra <tim@famdijkstra.org>
1178
1179         * configure.in: Added switch to disable user_database caching.
1180
1181         * dbus/dbus-userdb-util.c, dbus/dbus-userdb.c: Add ifdefs to
1182         be able disable user_dabase caching.
1183
1184 2006-12-12  Tim Dijkstra <tim@famdijkstra.org>
1185
1186         * bus/bus.c, bus/bus.h: Remove DBusUserDatabase from the BusContext 
1187         struct. It is unnecessary we have a global one already. Also remove 
1188         bus_context_get_user_database function, it is no longer needed.
1189         Flush the global database on reload.
1190
1191         * dbus/dbus-userdb-util.c: Replace _dbus_user_database_get_groups 
1192         with _dbus_groups_from_uid. It no longer needs a DBusUserDatabase.
1193
1194         * dbus/dbus-userdb.c, dbus/dbus-userdb.h: 
1195         Add _dbus_user_database_flush_system. 
1196         Make more functions DBUS_USERDB_INCLUDES_PRIVATE. 
1197         Small unrelated change in _dbus_is_a_number: change 
1198         _dbus_string_parse_int to _dbus_string_parse_uint. 
1199
1200         * bus/connection.c: Change call to _dbus_user_database_get_groups to 
1201         _dbus_groups_from_uid.
1202
1203         * bus/policy.c, bus/policy.h: Change call to 
1204         _dbus_user_database_get_groups to _dbus_groups_from_uid. Remove 
1205         DBusUserDatabase from bus_policy_allow_user prototype, it no longer 
1206         needs it.
1207
1208 2006-12-12  John (J5) Palmieri  <johnp@redhat.com>
1209
1210         * bus/signal.c: Fix match_rule_equal errata
1211         (CVE-2006-6107 - Patch from Kimmo Hämäläinen 
1212         <kimmo.hamalainen@nokia.com>)
1213
1214 2006-11-19  Thiago Macieira  <thiago@kde.org>
1215
1216         * dbus/dbus-sysdeps-pthread.c (_dbus_pthread_mutex_lock,
1217         _dbus_pthread_condvar_wait,
1218         _dbus_pthread_condvar_wait_timeout): set pmutex->holder to
1219         pthread_self() after coming back from a conditional variable
1220         wait as well as in one codepath where it was forgotten.
1221         Approved by: Havoc Pennington.
1222
1223 2006-11-17  Havoc Pennington  <hp@redhat.com>
1224
1225         * update-dbus-docs.sh: allow setting fd.org username via env
1226         variable. Make it run autogen with --enable-xml-docs=yes
1227         --enable-doxygen-docs=yes so configure will fail if the required
1228         tools are missing.
1229
1230 2006-11-17  Havoc Pennington  <hp@redhat.com>
1231
1232         * doc/dbus-faq.xml: minor FAQ tweaks
1233
1234 2006-11-14  Havoc Pennington  <hp@redhat.com>
1235         
1236         * dbus/dbus-misc.c, dbus/dbus-misc.h: Move
1237         dbus_get_local_machine_id() to its own file, no substantive
1238         changes. There are a couple other things we might want to add that
1239         are "misc" so moving out of dbus-connection.[hc] which is big
1240         enough already.
1241         
1242 2006-11-14  Havoc Pennington  <hp@redhat.com>
1243
1244         * dbus/dbus-internals.c (_dbus_generate_uuid): The spec said the
1245         UUID had the timestamp last, but the implementation had it first;
1246         move it to last since I think it's a tiny bit nicer (easier to
1247         compare at a glance, faster to sort, less code), and will not
1248         cause any practical compatibility problems. Also, always convert
1249         the timestamp to big endian.
1250
1251         * doc/dbus-specification.xml: Clean up the docs on the UUID.
1252
1253         * tools/dbus-uuidgen.1: more prominently say it is not suitable
1254         as a replacement for regular uuidgen/RFC4122.
1255
1256 2006-11-14  John (J5) Palmieri  <johnp@redhat.com>
1257
1258         * dbus/dbus-threads.h: fix DBUS_THREAD_FUNCTIONS_ALL_MASK to have
1259         the correct value so we don't assert when initalizing recursive threads
1260
1261         * test/name-test/test-thread-init.c: call dbus_threads_init_default
1262         instead of _dbus_threads_init_debug since it is more of a real world
1263         test
1264