1ebebde639
- SMB: Fix free space calculation for older samba servers - fuse: Fix setting timestamps
26 lines
899 B
Diff
26 lines
899 B
Diff
From 32dc3707bbb93153f9bd3df32259b7bf0e9cd579 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Larsson <alexl@redhat.com>
|
|
Date: Thu, 19 Nov 2009 10:56:44 +0000
|
|
Subject: If there are no mtimes in the file, use 0 as mtime base
|
|
|
|
Before we used to store -1 (0xffffffff) as the mtime base in this case.
|
|
This value is not used if there are no mtimes though, so this is more
|
|
like a cosmetic change.
|
|
---
|
|
diff --git a/metadata/metabuilder.c b/metadata/metabuilder.c
|
|
index cca2443..e27d1d3 100644
|
|
--- a/metadata/metabuilder.c
|
|
+++ b/metadata/metabuilder.c
|
|
@@ -940,7 +940,8 @@ metadata_create_static (MetaBuilder *builder,
|
|
|
|
/* Store the base as the min value in use minus one so that
|
|
0 is free to mean "not defined" */
|
|
- time_t_min = time_t_min - 1;
|
|
+ if (time_t_min != 0)
|
|
+ time_t_min = time_t_min - 1;
|
|
|
|
/* Pick the base as the minimum, unless that leads to
|
|
a 32bit overflow */
|
|
--
|
|
cgit v0.8.2
|