aboutsummaryrefslogtreecommitdiff
path: root/Utility/LogFile.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-01-29 15:21:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-01-29 15:21:02 -0400
commite128cc828b5d601e7a24c21689f38fe3bb54bbd8 (patch)
treece34cbff1c25273a9f5ce3c0f91b15e560e4af03 /Utility/LogFile.hs
parent2f4061cce0eb1189d194cef6ef2e446da53cd854 (diff)
change a few renameFile's to rename
AFAIK, none of these ever operate on directories, but nor do I want to explicitly check if they're files and fail if not.
Diffstat (limited to 'Utility/LogFile.hs')
-rw-r--r--Utility/LogFile.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/LogFile.hs b/Utility/LogFile.hs
index 090ac60d0..1c29b9ff4 100644
--- a/Utility/LogFile.hs
+++ b/Utility/LogFile.hs
@@ -30,7 +30,7 @@ rotateLog logfile = go 0
| num > maxLogs = return ()
| otherwise = whenM (doesFileExist currfile) $ do
go (num + 1)
- renameFile currfile nextfile
+ rename currfile nextfile
where
currfile = filename num
nextfile = filename (num + 1)