From: RĂ©mi Denis-Courmont Date: Sat, 16 Jan 2010 16:48:53 +0000 (+0200) Subject: directory: restore check against standard input X-Git-Tag: 1.1.0-ff~1180 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=e5afe49af364081da062133856a8c5adad35bbbf;p=vlc directory: restore check against standard input We could handle directories as descriptors, but we currently don't. In the mean time, we had better show an error than generate corrupt playlist entries. --- diff --git a/modules/access/file.c b/modules/access/file.c index 0a9852f75c..7b34f3ef36 100644 --- a/modules/access/file.c +++ b/modules/access/file.c @@ -192,6 +192,8 @@ int Open( vlc_object_t *p_this ) * how to parse the data. The directory plugin will do it. */ if (S_ISDIR (st.st_mode)) { + if (!strcasecmp (p_access->psz_access, "fd")) + goto error; /* fd:// not supported for directories yet */ #ifdef HAVE_FDOPENDIR DIR *handle = fdopendir (fd); if (handle == NULL)