summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbox.c b/mbox.c
index 9abb163d..10361184 100644
--- a/mbox.c
+++ b/mbox.c
@@ -115,7 +115,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
ts[0].tv_nsec = UTIME_NOW;
ts[1].tv_sec = 0;
ts[1].tv_nsec = UTIME_OMIT;
- utimensat (0, ctx->path, ts, 0);
+ utimensat (AT_FDCWD, ctx->path, ts, 0);
#else
newtime.actime = time (NULL);
newtime.modtime = sb.st_mtime;
@@ -277,7 +277,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
ts[0].tv_nsec = UTIME_NOW;
ts[1].tv_sec = 0;
ts[1].tv_nsec = UTIME_OMIT;
- utimensat (0, ctx->path, ts, 0);
+ utimensat (AT_FDCWD, ctx->path, ts, 0);
#else
newtime.actime = time (NULL);
newtime.modtime = sb.st_mtime;