aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-11-30 19:08:38 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-02 15:41:13 +0100
commitf21b72789018cf5ac581d851685162194b049d11 (patch)
tree8920040c5a2381d68d2d35e5bec3e37799947d9e /lib
parent1eef7653baae2046c26cfe8fb5fc91d6f9fa709b (diff)
downloadotp-f21b72789018cf5ac581d851685162194b049d11.tar.gz
otp-f21b72789018cf5ac581d851685162194b049d11.tar.bz2
otp-f21b72789018cf5ac581d851685162194b049d11.zip
stdlib: Fix return file_info on epoch
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/file.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl
index 8f027f5a40..dafd2c6909 100644
--- a/lib/kernel/src/file.erl
+++ b/lib/kernel/src/file.erl
@@ -1335,7 +1335,7 @@ fname_join(Dir, Name) ->
%% all times from prime_file (and file_server) are in unix epochs
%% from_epochs
-file_info_time(epoch, {ok, FI}) -> FI;
+file_info_time(epoch, {ok, FI} = R) -> R;
file_info_time(local, {ok, #file_info{ atime = Atime, ctime = Ctime, mtime = Mtime } = FI}) ->
{ok, FI#file_info{
atime = time_epochs_to_local(Atime),