[gnome-control-center/gnome-3-34] user-accounts: Use absolute path of command usermod



commit c47830c24cfb7817e249d4518a9174369088be72
Author: Xiaoguang Wang <xwang suse com>
Date:   Wed Dec 11 07:30:33 2019 +0000

    user-accounts: Use absolute path of command usermod
    
    On distro openSUSE Tumbleweed and SUSE Linux Enterprise the path
    of command usermod is not in environment variable PATH, we need to
    use absolute path to find command.
    
    
    (cherry picked from commit c6be204af030f23905ec7a69ab02c88a80f4a4f5)

 panels/user-accounts/user-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/user-utils.c b/panels/user-accounts/user-utils.c
index 3d4add2f3..83d4cd091 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] = "usermod";
+        argv[0] = "/usr/sbin/usermod";
         argv[1] = "--login";
         argv[2] = data->username;
         argv[3] = "--";


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