From 19026493d006261065f2797932b91c92ed8ee268 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 17 Nov 2007 19:26:18 +0000 Subject: [PATCH] Make Apache play nice with regen rmdom'ing --- src/plugins/apache.sml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/apache.sml b/src/plugins/apache.sml index 765d696..132f479 100644 --- a/src/plugins/apache.sml +++ b/src/plugins/apache.sml @@ -256,7 +256,9 @@ val () = Slave.registerFileHandler (fn fs => file = #file spl} val user = findVhostUser (#file fs) - val oldUser = findVhostUser realVhostFile + val oldUser = case #action fs of + Slave.Delete false => user + | _ => findVhostUser realVhostFile in if (oldUser = NONE andalso #action fs <> Slave.Add) orelse (user = NONE andalso not (Slave.isDelete (#action fs))) then -- 2.20.1