aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 327d8122e..97df3c061 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -202,7 +202,7 @@ int myStat(char * utf8file, struct stat * st) {
int isFile(char * utf8file, time_t * mtime) {
struct stat st;
- if(myStat(utf8file,&st)) {
+ if(myStat(utf8file,&st)==0) {
if(S_ISREG(st.st_mode)) {
if(mtime) *mtime = st.st_mtime;
return 1;