diff --git a/lib-src/movemail.c b/lib-src/movemail.c index a71be8c2099..6a772e9043e 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -470,7 +470,7 @@ main (int argc, char **argv) that were set on the file. Better to just empty the file. */ if (unlink (inname) < 0 && errno != ENOENT) #endif /* MAIL_UNLINK_SPOOL */ - creat (inname, 0600); + close (creat (inname, 0600)); } #endif /* not MAIL_USE_SYSTEM_LOCK */