X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Futils.cpp;fp=source%2Ffs%2Futils.cpp;h=b66b82dd70c90c1ed96b6f0cd13a27087ad4ebf5;hp=e3c09fde6e79aa9c3d446d060a377ebeb8771ba8;hb=e240e074ce15c17d644e378067c2941aefcd5611;hpb=2959598108418ebebe84c76c274d58eda0eab5e8 diff --git a/source/fs/utils.cpp b/source/fs/utils.cpp index e3c09fd..b66b82d 100644 --- a/source/fs/utils.cpp +++ b/source/fs/utils.cpp @@ -109,8 +109,7 @@ Path realpath(const Path &path) Path next = real/queue.front(); queue.pop_front(); - struct stat st = lstat(next); - if(S_ISLNK(st.st_mode)) + if(is_link(next)) { if(++n_links>64) throw runtime_error("too many symbolic links");