mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Revoked "Fixed handling symbolic links in cRecordings::ScanVideoDir()"
This commit is contained in:
parent
3a0f7d314a
commit
98a443cc61
3
HISTORY
3
HISTORY
@ -6839,3 +6839,6 @@ Video Disk Recorder Revision History
|
|||||||
2012-01-16: Version 1.7.24
|
2012-01-16: Version 1.7.24
|
||||||
|
|
||||||
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
||||||
|
- Revoked "Fixed handling symbolic links in cRecordings::ScanVideoDir()".
|
||||||
|
This change actually broke handling symbolic links (see
|
||||||
|
http://www.vdr-portal.de/board1-news/board2-vdr-news/p1047199-announce-vdr-developer-version-1-7-23/#post1047199).
|
||||||
|
@ -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: recording.c 2.43 2012/01/15 11:04:24 kls Exp $
|
* $Id: recording.c 2.44 2012/01/16 12:05:41 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -1112,7 +1112,7 @@ void cRecordings::ScanVideoDir(const char *DirName, bool Foreground, int LinkLev
|
|||||||
if (strcmp(e->d_name, ".") && strcmp(e->d_name, "..")) {
|
if (strcmp(e->d_name, ".") && strcmp(e->d_name, "..")) {
|
||||||
cString buffer = AddDirectory(DirName, e->d_name);
|
cString buffer = AddDirectory(DirName, e->d_name);
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (lstat(buffer, &st) == 0) {
|
if (stat(buffer, &st) == 0) {
|
||||||
int Link = 0;
|
int Link = 0;
|
||||||
if (S_ISLNK(st.st_mode)) {
|
if (S_ISLNK(st.st_mode)) {
|
||||||
if (LinkLevel > MAX_LINK_LEVEL) {
|
if (LinkLevel > MAX_LINK_LEVEL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user