[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 4/5] sysprep: remove (now obsolete) comment 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 | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sysprep/sysprep_operation_user_account.ml b/sysprep/sysprep_operation_user_account.ml
index cdb0bfd..872d8bc 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
-- 
1.9.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]