diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-29 15:21:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-29 15:21:02 -0400 |
commit | e128cc828b5d601e7a24c21689f38fe3bb54bbd8 (patch) | |
tree | ce34cbff1c25273a9f5ce3c0f91b15e560e4af03 /Utility/Daemon.hs | |
parent | 2f4061cce0eb1189d194cef6ef2e446da53cd854 (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/Daemon.hs')
-rw-r--r-- | Utility/Daemon.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Daemon.hs b/Utility/Daemon.hs index 12beb235a..8d402eb54 100644 --- a/Utility/Daemon.hs +++ b/Utility/Daemon.hs @@ -77,7 +77,7 @@ lockPidFile file = do #else writeFile newfile "-1" #endif - renameFile newfile file + rename newfile file where newfile = file ++ ".new" |