mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed detecting directories in cFileNameList::Load()
This commit is contained in:
parent
b678d5812c
commit
47ea5cb1d0
1
HISTORY
1
HISTORY
@ -5610,3 +5610,4 @@ Video Disk Recorder Revision History
|
|||||||
- Changed the message "Upcoming VPS recording!" to "Upcoming recording!" because
|
- Changed the message "Upcoming VPS recording!" to "Upcoming recording!" because
|
||||||
it applies to non-VPS recordings as well.
|
it applies to non-VPS recordings as well.
|
||||||
- Fixed a loss of a timer's 'recording' flag after modifying it via MODT.
|
- Fixed a loss of a timer's 'recording' flag after modifying it via MODT.
|
||||||
|
- Fixed detecting directories in cFileNameList::Load().
|
||||||
|
6
tools.c
6
tools.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: tools.c 1.140 2008/01/13 11:26:30 kls Exp $
|
* $Id: tools.c 1.141 2008/02/10 12:40:36 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
@ -1241,8 +1241,8 @@ bool cFileNameList::Load(const char *Directory, bool DirsOnly)
|
|||||||
if (strcmp(e->d_name, ".") && strcmp(e->d_name, "..")) {
|
if (strcmp(e->d_name, ".") && strcmp(e->d_name, "..")) {
|
||||||
if (DirsOnly) {
|
if (DirsOnly) {
|
||||||
struct stat ds;
|
struct stat ds;
|
||||||
if (stat(e->d_name, &ds) == 0) {
|
if (stat(AddDirectory(Directory, e->d_name), &ds) == 0) {
|
||||||
if (S_ISDIR(ds.st_mode))
|
if (!S_ISDIR(ds.st_mode))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user