Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs allow 0 timestamp
details: https://anonhg.NetBSD.org/src/rev/d7dd7ead8db6
branches: trunk
changeset: 351516:d7dd7ead8db6
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 16 22:44:06 2017 +0000
description:
allow 0 timestamp
diffstat:
usr.sbin/makefs/msdos.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 60c28cd1546f -r d7dd7ead8db6 usr.sbin/makefs/msdos.c
--- a/usr.sbin/makefs/msdos.c Thu Feb 16 22:42:25 2017 +0000
+++ b/usr.sbin/makefs/msdos.c Thu Feb 16 22:44:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdos.c,v 1.17 2017/02/16 18:50:04 christos Exp $ */
+/* $NetBSD: msdos.c,v 1.18 2017/02/16 22:44:06 christos Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: msdos.c,v 1.17 2017/02/16 18:50:04 christos Exp $");
+__RCSID("$NetBSD: msdos.c,v 1.18 2017/02/16 22:44:06 christos Exp $");
#endif /* !__lint */
#include <sys/param.h>
@@ -134,7 +134,10 @@
else if (strcmp(msdos_options[rv].name, "hidden_sectors") == 0)
msdos_opt->hidden_sectors_set = 1;
- msdos_opt->timestamp = stampst.st_ino ? stampst.st_mtime : 0;
+ if (stampst.st_ino) {
+ msdos_opt->timestamp_set = 1;
+ msdos_opt->timestamp = stampst.st_mtime;
+ }
return 1;
}
Home |
Main Index |
Thread Index |
Old Index