g_open seems to require 3 arguments on some platforms/versions
Bug #999718 reported by
reed
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Fix Released
|
Medium
|
Matt Fischer |
Bug Description
I have the following (but untested). I am using glib2-2.32.2.
--- src/vt.c.orig 2012-05-14 20:12:26.000000000 -0500
+++ src/vt.c 2012-05-14 20:12:41.000000000 -0500
@@ -30,7 +30,7 @@
{
int fd;
- fd = g_open ("/dev/console", O_RDONLY | O_NOCTTY);
+ fd = g_open ("/dev/console", O_RDONLY | O_NOCTTY, 0);
if (fd < 0)
g_warning ("Error opening /dev/console: %s", strerror (errno));
return fd;
Related branches
lp:~mfisch/lightdm/lightdm-lp999718
- Robert Ancell: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/vt.c (+1/-1)
Changed in lightdm: | |
status: | Incomplete → New |
Changed in lightdm: | |
status: | New → In Progress |
Changed in lightdm: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Medium |
To post a comment you must log in.
g_open doesn't seem to require the 3rd argument, perhaps it follows the manpage for open, where mode is only required when O_CREAT is specified? Is this causing a problem on your platform?