After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615899 - [PATCH] add g_file_get_full_path
[PATCH] add g_file_get_full_path
Status: RESOLVED DUPLICATE of bug 111848
Product: glib
Classification: Platform
Component: general
2.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-04-15 22:31 UTC by Paolo Bonzini
Modified: 2010-04-16 13:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (12.27 KB, patch)
2010-04-15 22:35 UTC, Paolo Bonzini
none Details | Review

Description Paolo Bonzini 2010-04-15 22:31:25 UTC
Getting a canonical file name, possibly following symlinks and correctly
handling trailing slashes, is not portable and much more complicated than it 
sounds like! (And realpath is buggy as well as not portable.)

This patch adds a function that does this, behaving the same way under Win32 and Unix, with GError, additional knobs and testcases.
Comment 1 Paolo Bonzini 2010-04-15 22:35:14 UTC
Created attachment 158853 [details] [review]
patch
Comment 2 Christian Dywan 2010-04-16 13:10:15 UTC

*** This bug has been marked as a duplicate of bug 111848 ***