fix big boo boo in last commit: isFile() { myStat==0 }
git-svn-id: https://svn.musicpd.org/mpd/trunk@1599 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
598162e395
commit
43afc87cc5
2
src/ls.c
2
src/ls.c
|
@ -202,7 +202,7 @@ int myStat(char * utf8file, struct stat * st) {
|
||||||
int isFile(char * utf8file, time_t * mtime) {
|
int isFile(char * utf8file, time_t * mtime) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if(myStat(utf8file,&st)) {
|
if(myStat(utf8file,&st)==0) {
|
||||||
if(S_ISREG(st.st_mode)) {
|
if(S_ISREG(st.st_mode)) {
|
||||||
if(mtime) *mtime = st.st_mtime;
|
if(mtime) *mtime = st.st_mtime;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue