[Pkg-libvirt-commits] [libguestfs] 46/63: sysprep: remove comment and notes about /etc/shadow lens
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:43:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.39-1
in repository libguestfs.
commit a0cf4b3407ea86276633ca36389d0ec964e7d0d5
Author: Pino Toscano <ptoscano at redhat.com>
Date: Thu Sep 4 16:14:42 2014 +0200
sysprep: remove comment and notes about /etc/shadow lens
We are either using the upstream lens, or our copy of it, to handle
/etc/shadow, so now removing entries from it works.
---
sysprep/sysprep_operation_user_account.ml | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sysprep/sysprep_operation_user_account.ml b/sysprep/sysprep_operation_user_account.ml
index cdb0bfd..3ed1b6e 100644
--- a/sysprep/sysprep_operation_user_account.ml
+++ b/sysprep/sysprep_operation_user_account.ml
@@ -93,10 +93,6 @@ let user_account_perform ~verbose ~quiet g root side_effects =
username;
None in
g#aug_rm userpath;
- (* XXX Augeas doesn't yet have a lens for /etc/shadow, so the
- * next line currently does nothing, but should start to
- * work in a future version.
- *)
g#aug_rm (sprintf "/files/etc/shadow/%s" username);
g#aug_rm (sprintf "/files/etc/group/%s" username);
match home_dir with
@@ -118,10 +114,6 @@ The \"root\" account is not removed.
See the I<--user-accounts> parameter for a way to specify
how to remove only some users, or to not remove some others.");
- pod_notes = Some (s_"\
-Currently this does not remove the user accounts from
-C</etc/shadow>. This is because there is no lens for
-the shadow password file in Augeas.");
extra_args = [
{ extra_argspec = "--user-accounts", Arg.String set_users, s_"users" ^ " " ^ s_"Users to remove/keep";
extra_pod_argval = Some "USERS";
--
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