From 300579565c3afadb7bb090335b97583d33501d9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 16 Jan 2010 13:00:16 +0200 Subject: [PATCH] directory: remove special case for '-' directory does not register the "fd" shortcut, so the standard input case should not occur. --- modules/access/directory.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/modules/access/directory.c b/modules/access/directory.c index a0fe15cc08..feb655e259 100644 --- a/modules/access/directory.c +++ b/modules/access/directory.c @@ -100,22 +100,7 @@ int DirOpen( vlc_object_t *p_this ) if( !p_access->psz_path ) return VLC_EGENERIC; - DIR *handle; - if (strcmp (p_access->psz_path, "-")) - handle = utf8_opendir (p_access->psz_path); - else - { -#if 0 /* This won't work yet, it generates paths like "-/music.ogg". - * We'd need to use openat() here and in the file access... */ - int fd = dup (0); - handle = fdopendir (fd); - if (handle == NULL) - close (fd); -#else - return VLC_EGENERIC; -#endif - } - + DIR *handle = utf8_opendir (p_access->psz_path); if (handle == NULL) return VLC_EGENERIC; -- 2.39.2