aboutsummaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg.c b/src/msg.c
index 29566c1..7aefba1 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -132,10 +132,10 @@ run(void)
{
time_t rawtime;
struct tm *timeinfo;
-
time(&rawtime);
timeinfo = localtime(&rawtime);
printf("Generation started at: %s", asctime(timeinfo));
+
struct stat sb;
if (stat(msg->base_directory, &sb) != 0 || !S_ISDIR(sb.st_mode)) {
printf("%s does not exist.\n", msg->base_directory);