system.c: fix fake directory create times
[janger/samba-autobuild-v4-18-test/.git] / source3 / lib / system.c
index 16fe3839446eb61a92db1e3814a0d24c758ba14c..5874afadd3c23e4e34475d308cc2366e008e2b0c 100644 (file)
@@ -186,6 +186,7 @@ static void make_create_timespec(const struct stat *pst, struct stat_ex *dst,
        if (S_ISDIR(pst->st_mode) && fake_dir_create_times) {
                dst->st_ex_btime.tv_sec = 315493200L;          /* 1/1/1980 */
                dst->st_ex_btime.tv_nsec = 0;
+               return;
        }
 
        dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_BTIME;