D12732: Implement a more user-friendly run-as-root-or-sudo behavior

Nathaniel Graham noreply at phabricator.kde.org
Mon May 7 16:14:46 BST 2018


ngraham added a comment.


  In D12732#259043 <https://phabricator.kde.org/D12732#259043>, @markg wrote:
  
  > I wonder if the check is accurate.
  >
  > I think you need to replace the == root string check to either the one it was before or something like:
  >  KUser(getuid()).isSuperUser() (this basically is getuid() == 0)
  
  
  It's accurate. `getuid() == 0` returns true for a regular user using sudo as well as the actual root user. Capturing that distinction is a part of this patch.

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D12732

To: ngraham, #dolphin
Cc: markg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180507/0fce4fa3/attachment.htm>


More information about the kfm-devel mailing list