summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2006-03-16 10:52:32 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2006-03-16 10:52:32 +0000
commit2b89c7a69a8b5ada4e5a7456481443823b4abdd0 (patch)
tree02dcc703aa51dd512f93cb810b397c6875e3a198
parente99b96abce868bbcab42c3735bb35ff0d3dadb79 (diff)
downloadxine-lib-2b89c7a69a8b5ada4e5a7456481443823b4abdd0.tar.gz
xine-lib-2b89c7a69a8b5ada4e5a7456481443823b4abdd0.tar.bz2
- Also ignore the zero file size for character device nodes, patch from
Bill Fink <billfink@mindspring.com> CVS patchset: 7927 CVS date: 2006/03/16 10:52:32
-rw-r--r--src/input/input_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/input_file.c b/src/input/input_file.c
index 33045ffc5..84e6e377b 100644
--- a/src/input/input_file.c
+++ b/src/input/input_file.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_file.c,v 1.105 2005/10/14 21:02:16 miguelfreitas Exp $
+ * $Id: input_file.c,v 1.106 2006/03/16 10:52:32 hadess Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -293,9 +293,9 @@ static int file_plugin_open (input_plugin_t *this_gen ) {
}
}
- /* don't check length of fifo */
+ /* don't check length of fifo or character device node */
if (fstat (this->fh, &sbuf) == 0) {
- if (S_ISFIFO(sbuf.st_mode))
+ if (S_ISFIFO(sbuf.st_mode) || S_ISCHR(sbuf.st_mode))
return 1;
}