[Pkg-libvirt-commits] [libguestfs] 163/179: sysprep: remove /var/spool/mail/username
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 31 19:08:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit d0eba7f26035db10dcaa062e1c90e63f6d446f9f
Author: Hu Tao <hutao at cn.fujitsu.com>
Date: Tue Oct 28 15:51:24 2014 +0800
sysprep: remove /var/spool/mail/username
remove /var/spool/mail/username if --enable user-account.
Signed-off-by: Hu Tao <hutao at cn.fujitsu.com>
---
sysprep/sysprep_operation_user_account.ml | 1 +
1 file changed, 1 insertion(+)
diff --git a/sysprep/sysprep_operation_user_account.ml b/sysprep/sysprep_operation_user_account.ml
index fda55476..bda6331 100644
--- a/sysprep/sysprep_operation_user_account.ml
+++ b/sysprep/sysprep_operation_user_account.ml
@@ -83,6 +83,7 @@ let user_account_perform ~verbose ~quiet g root side_effects =
g#aug_rm userpath;
g#aug_rm (sprintf "/files/etc/shadow/%s" username);
g#aug_rm (sprintf "/files/etc/group/%s" username);
+ g#rm_rf ("/var/spool/mail/" ^ username);
match home_dir with
| None -> ()
| Some dir -> g#rm_rf dir
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list