diff --git a/usr.sbin/makefs/msdos.c b/usr.sbin/makefs/msdos.c --- a/usr.sbin/makefs/msdos.c +++ b/usr.sbin/makefs/msdos.c @@ -162,6 +162,10 @@ "!= -o bytes_per_sector %u", fsopts->sectorsize, msdos_opt->options.bytes_per_sector); } + if (stampst.st_ino != 0) { + msdos_opt->options.timestamp_set = 1; + msdos_opt->options.timestamp = stampst.st_ctime; + } /* create image */ printf("Creating `%s'\n", image);