Skip to content

Commit

Permalink
Make it clear that toad only works with users 1000...60000.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajacoutot committed Feb 10, 2019
1 parent 31bfe16 commit 989bfa2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
v1.8 - NOT-RELEASED-YET
v1.9 - NOT-RELEASED-YET
-----------------------------------

v1.8 - Sun Feb 10 15:03:09 CET 2019
-----------------------------------
- only works with regular users (uid 1000...60000)
- add support for ejecting cd-rom
- remove support for firmware installation, it can easily be done using
fw_update(1) in the hotplugd(8) attach script

Expand Down
3 changes: 3 additions & 0 deletions toad.8
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ This follows the
.Em udev
hierarchy in Linux which allows interaction with GLib/GIO's GUnixMount.
.Pp
Users outside the default UID range (1000...60000) are ignored (nothing will
be done).
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Ar action
Expand Down
2 changes: 1 addition & 1 deletion toad.pl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ sub get_active_user_info {

my $uid = $ck_session->GetUnixUser ();
getpwuid ($uid) || die "no $uid user: $!";
next unless $uid >= 1000;
next unless ($uid >= 1000 && $uid <= 60000);

my $display = $ck_session->GetX11Display ();
next unless length ($display);
Expand Down

0 comments on commit 989bfa2

Please sign in to comment.