Posix.realpath has incorrect prototype
Bug #1154853 reported by
Sergio Costas
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vala-0.18 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Trying to use Posix.realpath with a code like:
string tmp;
tmp=
is compiled to:
_tmp35_ = realpath (_tmp34_, NULL, 0);
which fails with error:
.vala.c:920:2: error: too many argument for function ‘realpath’
because 'realpath' needs only two parameters, not three.
This error exists in both Vala 0.16 and 0.18.
The fix (pointed by Jonas Kulla) is to modify the prototype in posix.vapi to:
[CCode (cheader_filename = "stdlib.h")]
public string? realpath (string path, [CCode (array_
resolved_path = null);
This bug also applies to vala 0.16, so I will open a new bug report there and attach the diff.
Changed in vala-0.18 (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
The attachment "posix. realpath. vala_0. 18.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]