Unverified Commit 611e5803 authored by Bobby Rong's avatar Bobby Rong
Browse files

gnome.gnome-control-center: Re-apply fix for hardcode usermod

To keep this consistent with accountsservice and budgie-control-center,
assuming it has no harm.

https://github.com/NixOS/nixpkgs/pull/216737/files#r1109247859
parent 077052e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@
, polkit
, python3
, samba
, shadow
, shared-mime-info
, sound-theme-freedesktop
, tracker
@@ -75,7 +76,7 @@ stdenv.mkDerivation rec {
    (substituteAll {
      src = ./paths.patch;
      gcm = gnome-color-manager;
      inherit glibc libgnomekbd tzdata;
      inherit glibc libgnomekbd tzdata shadow;
      inherit cups networkmanagerapplet;
    })
  ];
+13 −0
Original line number Diff line number Diff line
@@ -166,6 +166,19 @@ index 86f53d4fc..0b052856f 100644
         argv[1] = NULL;
 
         envp = g_get_environ ();
diff --git a/panels/user-accounts/user-utils.c b/panels/user-accounts/user-utils.c
index 83d4cd091..e8784c722 100644
--- a/panels/user-accounts/user-utils.c
+++ b/panels/user-accounts/user-utils.c
@@ -486,7 +486,7 @@ is_valid_username_async (const gchar *username,
          * future, so it would be nice to have some official way for this
          * instead of relying on the current "--login" implementation.
          */
-        argv[0] = "/usr/sbin/usermod";
+        argv[0] = "@shadow@/bin/usermod";
         argv[1] = "--login";
         argv[2] = data->username;
         argv[3] = "--";
diff --git a/tests/datetime/test-endianess.c b/tests/datetime/test-endianess.c
index 9cb92007a..84d2f0fa3 100644
--- a/tests/datetime/test-endianess.c