[Portland-bugs] [Bug 57921] New: Clarify the xdg-su man page
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Dec 5 11:19:33 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=57921
Priority: medium
Bug ID: 57921
Assignee: portland-bugs at lists.freedesktop.org
Summary: Clarify the xdg-su man page
Severity: normal
Classification: Unclassified
OS: All
Reporter: fgouget at codeweavers.com
Hardware: Other
Status: NEW
Version: unspecified
Component: xdg-utils
Product: Portland
Created attachment 71040
--> https://bugs.freedesktop.org/attachment.cgi?id=71040&action=edit
Better check the -u and -c options and document -c
The xdg-su man page says:
> xdg-su [-u user] -c command
>
> xdg-su provides a graphical dialog that prompts the user for a
> password to run command as user or as root if no user was specified.
The '-c' option is not documented and this does not clearly say if one should
use 'xdg-su -c echo HelloWorld' or 'xdg-su -c "echo HelloWorld"'.
The example at the end of the page seems to imply the latter but then it's only
one example and one may think that a second example could show that the other
option is valid too.
> xdg-su -u root -c "/opt/shinythings/bin/install-GUI --install fast"
I'll further note that the situation is muddied by the fact that
xdg-su -c sh -c 'echo HelloWorld'
is equivalent to
xdg-su -c foo -c 'echo HelloWorld'
and to
xdg-su -c 'echo HelloWorld'
due to the limited parameter checking.
I'm attaching a patch as a starting point for a fix.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20121205/ea603abc/attachment.html>
More information about the Portland-bugs
mailing list