5621 Commits

Author SHA1 Message Date
Matthias Clasen
45151f5d40 Bug 546017 – Don't copy attributes when copying a symlink
* gfile.c (g_file_copy_attributes): Specify
        G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in the call to
        g_file_set_attributes_from_info. Patch by Christian Kellner


svn path=/branches/glib-2-16/; revision=7465
2008-09-11 19:05:47 +00:00
Matthias Clasen
c0c69ece01 Bug 546079 – leak in xdgmime
* xdgmime/xdgmime.c (xdg_mime_shutdown): Fix memory leak.


svn path=/branches/glib-2-16/; revision=7464
2008-09-11 19:02:23 +00:00
Matthias Clasen
73ea169266 Bug 545457 – gdmsetup crashed with SIGSEGV in
g_unix_mount_guess_should_display()

        * gunixvolumemonitor.c (get_mount_for_mount_path): Don't
        crash if no mount is found.


svn path=/branches/glib-2-16/; revision=7463
2008-09-11 19:00:18 +00:00
Matthias Clasen
5a7af0fbf4 Bug 545157 – wrong/no list of "open with" applications for .cc and
.cpp files

        * gdesktopappinfo.c (get_all_desktop_entries_for_mime_type):
        Collect all ancestors, not just direct parents. Pointed
        out by Bastien Nocera


svn path=/branches/glib-2-16/; revision=7462
2008-09-11 18:57:25 +00:00
Matthias Clasen
c0b0dbe65d Bug 544140 - fam-helper 64-bit issue?
* fam/fam-helper.c: Added missing include so compiler doesn't complain.

svn path=/branches/glib-2-16/; revision=7461
2008-09-11 18:55:15 +00:00
Matthias Clasen
66aaaf44eb Bug 548321 – <string.h> is not included in gi18n-lib.h
* glib/gi18n.h:
        * glib/gi18n-lib.h: Include string.h, since strlen is used in
        the macros. Pointed out by Ignacio Casal Quinteiro


svn path=/branches/glib-2-16/; revision=7460
2008-09-11 18:47:50 +00:00
Matthias Clasen
3590eb79a8 Change libselinux detection to not link libglib
against it.


svn path=/branches/glib-2-16/; revision=7459
2008-09-11 18:44:56 +00:00
Matthias Clasen
6cbdc200a3 Accept lesser mmaps
svn path=/branches/glib-2-16/; revision=7458
2008-09-11 17:21:30 +00:00
Matthias Clasen
17c718d5e9 svn path=/branches/glib-2-16/; revision=7457
svn path=/branches/glib-2-16/; revision=7457
2008-09-11 17:19:41 +00:00
Matthias Clasen
26e312fa30 Fix detection of struct statfs fields.
svn path=/branches/glib-2-16/; revision=7456
2008-09-11 17:10:58 +00:00
Emmanuele Bassi
83eca28279 Relax the attributes checking of the GBookmarkFile parser for the
2008-08-31  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gbookmarkfile.c:
	(parse_bookmark_element), (parse_application_element),
	(parse_mime_type_element), (parse_icon_element): Relax the
	attributes checking of the GBookmarkFile parser for the
	attributes that the desktop bookmark file specification
	defines and controls. (See bug 550096)

svn path=/branches/glib-2-16/; revision=7417
2008-08-31 19:47:38 +00:00
Loïc Minier
4ba8781eaf Merge r7323 from trunk
2008-08-08  Loïc Minier  <lool@dooz.org>

	Bug 535124 – umask 002 not being applied for new directories, new
	files get the correct umask

	* glocalfile.c: (g_local_file_make_directory): Use 0777 instead of
	0755 as umask

svn path=/branches/glib-2-16/; revision=7324
2008-08-08 09:33:59 +00:00
Matthias Clasen
0adb625876 Bump version
svn path=/branches/glib-2-16/; revision=7219
2008-07-20 03:41:52 +00:00
Matthias Clasen
8d0cba5adb 2.16.5
svn path=/branches/glib-2-16/; revision=7217
GLIB_2_16_5
2008-07-20 03:40:06 +00:00
Matthias Clasen
a670fe2ea6 Fix the build
svn path=/branches/glib-2-16/; revision=7216
2008-07-20 03:10:56 +00:00
Matthias Clasen
14d1b6e551 Updates
svn path=/branches/glib-2-16/; revision=7215
2008-07-20 02:59:00 +00:00
Matthias Clasen
9cf831968f 543504 – crash in Epiphany Web Browser: Opening local file
* gappinfo.c:
        * gasyncresult.c:
        * gdesktopappinfo.c:
        * gdrive.c:
        * gfile.c:
        * gicon.c:
        * gloadableicon.c:
        * gmount.c:
        * gseekable.c:
        * gvolume.c: Register types thread-safely.
        Patch by Christian Persch


svn path=/branches/glib-2-16/; revision=7214
2008-07-20 02:52:44 +00:00
Matthias Clasen
4e9d1673e4 Bug 543040 – async reading on dummy file will crash on GIO_USE_VFS=local
Bug 543040 – async reading on dummy file will crash on
        GIO_USE_VFS=local

        * gfile.c (open_read_async_thread): Cope with read_fn being
        NULL. Reported by Lin Ma.


svn path=/branches/glib-2-16/; revision=7213
2008-07-20 02:49:45 +00:00
Matthias Clasen
a5ccc1fff1 Bug 540616 – mem leak in filechooser button
* gunixvolumemonitor.c (get_mount_for_mount_path): Free
        the mount entry. Reported by Chrisitan Persch


svn path=/branches/glib-2-16/; revision=7212
2008-07-20 02:47:15 +00:00
Matthias Clasen
3362be91bd Set a sane default recursion limit of 8192 instead of 1000000. Patch by
* glib/pcre/Makefile.am: Set a sane default recursion limit
        of 8192 instead of 1000000.
        Patch by Mart Raudsepp.


svn path=/branches/glib-2-16/; revision=7211
2008-07-20 02:41:36 +00:00
Matthias Clasen
91b142c490 Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
svn path=/branches/glib-2-16/; revision=7210
2008-07-20 02:36:20 +00:00
Chao-Hsiung Liao
0a7c39f5a2 Updated Traditional Chinese translation(Hong Kong). Updated Traditional
2008-07-13  Chao-Hsiung Liao  <j_h_liau@yahoo.com.tw>

        * zh_HK.po: Updated Traditional Chinese translation(Hong Kong).
        * zh_TW.po: Updated Traditional Chinese translation(Taiwan).



svn path=/branches/glib-2-16/; revision=7177
2008-07-13 08:20:59 +00:00
Tor Lillqvist
e67641495d Merge from trunk:
2008-07-11  Tor Lillqvist  <tml@novell.com>

	Merge from trunk:

	* glib-zip.in: Include also lib/gio-2.0.{lib,def} in the developer
	zipfile.


svn path=/branches/glib-2-16/; revision=7176
2008-07-11 07:17:58 +00:00
Matthias Clasen
fa1b036204 Bump version
svn path=/branches/glib-2-16/; revision=7134
2008-07-02 02:11:51 +00:00
Matthias Clasen
c5e15e6cd0 2.16.4
svn path=/branches/glib-2-16/; revision=7132
GLIB_2_16_4
2008-07-02 02:10:00 +00:00
Matthias Clasen
19b8def2cc Add bug references
svn path=/branches/glib-2-16/; revision=7128
2008-07-01 13:38:36 +00:00
Behdad Esfahbod
e8d75f8e3b Bug 459905 – Bug in wcwidth data Bug 534085 – g_unichar_iswide_cjk()
2008-05-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 459905 – Bug in wcwidth data
        Bug 534085 – g_unichar_iswide_cjk() has a totally wrong table
        * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
        Regenrate wide and wide_cjk tables from Unicode 5.1.0 data directly.
        Not using Markus Kuhn's tables anymore.


svn path=/branches/glib-2-16/; revision=7126
2008-07-01 04:55:10 +00:00
Matthias Clasen
e3233aa1b4 Updates
svn path=/branches/glib-2-16/; revision=7125
2008-07-01 04:42:06 +00:00
Matthias Clasen
7bdd7beaa2 Apply fix for CVE-2008-2371 to fix a heap-based buffer overflow.
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
        fix a heap-based buffer overflow.


svn path=/branches/glib-2-16/; revision=7124
2008-07-01 03:29:08 +00:00
Matthias Clasen
9f08c1869b Update to PCRE 7.7
svn path=/branches/glib-2-16/; revision=7122
2008-07-01 03:23:36 +00:00
Matthias Clasen
cc76a63dcc Bug 537392 – Additional colon in xattr name
2008-06-10  Matthias Clasen <mclasen@redhat.com>

        Bug 537392 – Additional colon in xattr name

        * glocalfileinfo.c (set_xattr): Skip the second colon of the prefix,
        too. Reported by  Alessandro Morandi


svn path=/branches/glib-2-16/; revision=7121
2008-07-01 02:49:59 +00:00
Matthias Clasen
67012beaa4 Bug 536641 – Filesystem querying in gio does not list AFS and autofs
file systems

        * glocalfile.c (get_fs_type): Add afs and autofs.
        Patch by Danny Baumann.


svn path=/branches/glib-2-16/; revision=7120
2008-07-01 02:43:12 +00:00
Matthias Clasen
c800a9a4f2 Bug 528600 – g_dummy_file_get_parent("scheme://example.com/")
* gdummyfile.c (g_dummy_file_get_parent): Return NULL if there
        is no parent.  (Owen Taylor, patch by Christian Neumair)


svn path=/branches/glib-2-16/; revision=7119
2008-07-01 02:39:26 +00:00
Matthias Clasen
e34b0b5c72 do not leak the output stream.
* gfile.c (g_file_replace_contents): do not leak the output stream.

svn path=/branches/glib-2-16/; revision=7118
2008-07-01 02:37:29 +00:00
Matthias Clasen
8af6c328a9 Bug 530196 – _g_local_file_has_trash_dir() doesn't handle st_dev == 0
* glocalfile.c (_g_local_file_has_trash_dir): Handle the case that
        st_dev might be zero.


svn path=/branches/glib-2-16/; revision=7117
2008-07-01 02:32:12 +00:00
Matthias Clasen
faf349a2f9 Bug 538119 – glib's mainloop leaks a pipe to sub-processes
* glib/gmain.c (g_main_context_init_pipe): Don't leak the
        pipes to child processes. Patch by Thiago Macieira.


svn path=/branches/glib-2-16/; revision=7116
2008-06-30 22:45:33 +00:00
Matthias Clasen
695a864c2a Bug 502511 – g_assert_cmphex prints invalid message
* glib/gtestutils.c (g_assertion_message_cmpnum): Actually print
        hex numbers in hex.
        Pointed out by Tor Lillqvist


svn path=/branches/glib-2-16/; revision=7115
2008-06-30 22:40:13 +00:00
Matthias Clasen
281f4c58bf Bug 314453 – Nautilus crashes in Solaris when browsing the attached
file

        * glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning
        -1 a little better. Problem pointed out by Takao Fujiwara



svn path=/branches/glib-2-16/; revision=7114
2008-06-30 22:37:45 +00:00
Matthias Clasen
3602dcca46 Bug 529321 – make check fails in glib/pcre
* glib/pcre/Makefile.am: include Makefile.decl to fix 'make check'.
        Patch by Hiroyuki Ikezoe


svn path=/branches/glib-2-16/; revision=7113
2008-06-30 22:25:21 +00:00
Matthias Clasen
ed3b351c49 Bug 536158 – also bump GHashTable version when a node is removed via
g_hash_table_iter_remove()/g_hash_table_iter_steal()

        * glib/ghash.c (iter_remove_or_steal): Bump the hash table
        version. Patch by Jean-Yves Lefort


svn path=/branches/glib-2-16/; revision=7112
2008-06-30 22:19:07 +00:00
Matthias Clasen
1f2eb23cea Apply type casts needed for proper compilation on 64-bit platforms.
* glib/gslice.h (g_slice_copy): Apply type casts needed
        for proper compilation on 64-bit platforms.


svn path=/branches/glib-2-16/; revision=7111
2008-06-30 22:13:45 +00:00
Matthias Clasen
041dd6b4ce Bug 540423 – unrecoverable error after g_seekable_truncate(seekable, 0,
2008-06-29  Matthias Clasen  <mclasen@redhat.com>

        Bug 540423 – unrecoverable error after g_seekable_truncate(seekable,
        0, ...)

        * gmemoryoutputstream.c (array_resize): Handle truncation to
        zero correctly. Reported by Akira Tagoh


svn path=/branches/glib-2-16/; revision=7107
2008-06-30 03:48:35 +00:00
Matthias Clasen
c69e10ffd5 Fix a doc problem
svn path=/branches/glib-2-16/; revision=7105
2008-06-30 03:06:56 +00:00
Sebastian Dröge
408471e3a9 Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in:
* glib/gthread.h: Revert previous patch as it doesn't improve the
situation and results in other warnings.

svn path=/branches/glib-2-16/; revision=7063
2008-06-20 11:28:11 +00:00
Tor Lillqvist
0f1bae710c Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
2008-06-19  Tor Lillqvist  <tml@novell.com>

	Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()

	* glib/gspawn-win32-helper.c (main): Write also the exit status of
	the spawned process to the error report pipe. Patch by Hiroyuki
	Ikezoe.


svn path=/branches/glib-2-16/; revision=7061
2008-06-19 07:15:25 +00:00
Matthias Clasen
9aa9ad2989 fixed race condition where references to partially initialized classes
* gtype.c (g_type_class_ref): fixed race condition where references to
        partially initialized classes could be handed out.

svn path=/branches/glib-2-16/; revision=7054
2008-06-17 02:58:11 +00:00
Tor Lillqvist
698bee8aa5 Cosmetics.
svn path=/branches/glib-2-16/; revision=6974
2008-06-09 03:49:34 +00:00
Tor Lillqvist
4f3922f249 Define X_OK if not defined (MSVC).
2008-06-07  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).


svn path=/branches/glib-2-16/; revision=6971
2008-06-07 04:05:03 +00:00
Philipp Kerling
81aac64b38 Updated German translation
2008-05-31  Philipp Kerling  <k.philipp@gmail.com>

	* de.po: Updated German translation

svn path=/branches/glib-2-16/; revision=6966
2008-05-31 08:29:07 +00:00
Tor Lillqvist
663fe6839f Mask out X_OK to avoid problem on Vista. X_OK was just ignored by access()
2008-05-30  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
	on Vista. X_OK was just ignored by access() in earlier Microsoft C
	libraries. (Which is fine as executability has little meaning on
	Windows.) The one on Vista returns an error if X_OK is passed.


svn path=/branches/glib-2-16/; revision=6962
2008-05-29 23:06:41 +00:00