s/lstat/stat/ since it can be a symlink, ask decadix on IRC if you have questiosn
authorChristian Schaller <uraeus@gnome.org>
Mon, 12 Apr 2004 19:41:34 +0000 (19:41 +0000)
committerChristian Schaller <uraeus@gnome.org>
Mon, 12 Apr 2004 19:41:34 +0000 (19:41 +0000)
Original commit message from CVS:
s/lstat/stat/ since it can be a symlink, ask decadix on IRC if you have questiosn

ChangeLog
sys/oss/gstosselement.c

index fe98892..a012cb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-12  Christian Schaller <Uraeus@gnome.org>
+
+       * sys/oss/gstosselement.c: s/lstat/stat/ from freeBSD, since it can 
+       be a symlink
 2004-04-11  Ronald Bultje  <rbultje@ronald.bitfreak.net>
 
        * gst/avi/gstavidemux.c: (gst_avi_demux_stream_data):
index 0ca2e8e..600e0b0 100644 (file)
@@ -194,7 +194,7 @@ gst_osselement_probe (gchar * device_base,
     goto end;
   }
 
-  if (lstat (device, &s) || !S_ISCHR (s.st_mode))
+  if (stat (device, &s) || !S_ISCHR (s.st_mode))
     goto end;
 
   *name = device;