aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 9bc44f4a0..d99b3a29f 100644
--- a/src/song.c
+++ b/src/song.c
@@ -108,7 +108,7 @@ song_file_update(struct song *song)
song->tag = NULL;
}
- if (stat(abs_path, &st) < 0)
+ if (stat(abs_path, &st) < 0 || !S_ISREG(st.st_mode))
return false;
song->mtime = st.st_mtime;