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