[Xfce4-commits] <xfce4-radio-plugin:master> Read-only access should be enough to query the device's capabilities

Stefan Ott noreply at xfce.org
Sun May 22 13:08:01 CEST 2011


Updating branch refs/heads/master
         to 1b1b94237d237897782c4a93529c953d81d535f5 (commit)
       from 94cabde8902925ac4578d2d6e199f27cc3ed1c57 (commit)

commit 1b1b94237d237897782c4a93529c953d81d535f5
Author: Stefan Ott <stefan at ott.net>
Date:   Sun May 22 12:45:49 2011 +0200

    Read-only access should be enough to query the device's capabilities

 panel-plugin/xfce4-radio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/xfce4-radio.c b/panel-plugin/xfce4-radio.c
index 7389e3b..96c1925 100644
--- a/panel-plugin/xfce4-radio.c
+++ b/panel-plugin/xfce4-radio.c
@@ -739,7 +739,7 @@ radio_find_tuners(GList *tuners)
 static gchar *
 radio_tuner_name(const gchar *devname)
 {
-	int fd = open(devname, O_RDWR);
+	int fd = open(devname, O_RDONLY);
 
 	struct v4l2_capability vcap;
 



More information about the Xfce4-commits mailing list