From 480b51c6a163845b77858df4ca90fee880b3673e Mon Sep 17 00:00:00 2001 From: Andrej Mitrovic Date: Sun, 10 Feb 2013 04:19:39 +0100 Subject: [PATCH] setTimes should throw FileException on Posix. --- std/file.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/file.d b/std/file.d index cad596e44..d28658bb6 100644 --- a/std/file.d +++ b/std/file.d @@ -696,7 +696,7 @@ void setTimes(in char[] name, t[0] = accessTime.toTimeVal(); t[1] = modificationTime.toTimeVal(); - enforce(utimes(toStringz(name), t) == 0); + cenforce(utimes(toStringz(name), t) == 0, name); } }