Bug 51889 - does not accept 'user' argument or option
Summary: does not accept 'user' argument or option
Status: RESOLVED FIXED
Alias: None
Product: kdepasswd
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Geert Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-14 10:51 UTC by Karolina Lindqvist
Modified: 2003-04-21 20:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karolina Lindqvist 2002-12-14 10:51:34 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
OS:          Linux

It looks like kdepasswd can accept a "--user" option, but it does not work. It is probably supposed to be a <user> argument, and the programs works if a '+' is stuck in front of "user" in the KCmdLineOptions.

The following assumes the patch of inserting a '+' is applied:

If the <user> argument is specified, the program should check if it is the root user calling the program, since otherwise it will not change the password for that user but for the current user.

If the root user is using that argument, it will give the wrong message and say "your password has been changed" instead of saying "the password for user xxx has been changed"
Comment 1 Waldo Bastian 2003-04-21 20:52:34 UTC
Subject: kdeutils/kdepasswd

CVS commit by waba: 

CCMAIL: 51889-done@bugs.kde.org
Accept 'user' as argument (when running as root) (BR51889)


  M +16 -6     kdepasswd.cpp   1.7
  M +8 -6      passwd.cpp   1.9
  M +3 -2      passwd.h   1.4
  M +21 -13    passwddlg.cpp   1.8
  M +3 -6      passwddlg.h   1.2
  M +1 -1      userinfo/userinfo.cpp   1.6