summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 16:57:13 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 16:57:13 -0700
commit517566b9f173245938b855f8a928b2ba7d12a7c7 (patch)
tree6670d2b17caf0471aa05b253b00fefcdbf390964
parent6c23e85dc0b0e88460982def7f9705fd12530513 (diff)
downloadpiny-code-517566b9f173245938b855f8a928b2ba7d12a7c7.tar.gz
piny-code-517566b9f173245938b855f8a928b2ba7d12a7c7.zip
Hardcode some paths.
-rw-r--r--usr/src/libpiny/debian/changelog3
-rw-r--r--usr/src/libpiny/lib/Piny/Group.pm4
2 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/libpiny/debian/changelog b/usr/src/libpiny/debian/changelog
index bd74a64..222d361 100644
--- a/usr/src/libpiny/debian/changelog
+++ b/usr/src/libpiny/debian/changelog
@@ -5,8 +5,9 @@ libpiny-perl (0.3-1) unstable; urgency=low
* Add some more type constraints.
* Fix a bug in the username detection.
* Forbid purely-numeric usernames.
+ * Use fixed paths to reach adduser and deluser.
- -- Julian Blake Kongslie <jblake@omgwallhack.org> Thu, 18 Mar 2010 13:51:47 -0700
+ -- Julian Blake Kongslie <jblake@omgwallhack.org> Thu, 18 Mar 2010 16:56:24 -0700
libpiny-perl (0.2-1) unstable; urgency=low
diff --git a/usr/src/libpiny/lib/Piny/Group.pm b/usr/src/libpiny/lib/Piny/Group.pm
index c1df42d..a4d3c27 100644
--- a/usr/src/libpiny/lib/Piny/Group.pm
+++ b/usr/src/libpiny/lib/Piny/Group.pm
@@ -41,7 +41,7 @@ sub add_member {
my ( $s, @users ) = @_;
foreach my $user ( @users ) {
- system( "adduser", $user->username( ), $s->groupname( ) );
+ system( "/usr/sbin/adduser", $user->username( ), $s->groupname( ) );
$user->clear_groups( );
};
@@ -52,7 +52,7 @@ sub remove_member {
my ( $s, @users ) = @_;
foreach my $user ( @users ) {
- system( "deluser", $user->username( ), $s->groupname( ) );
+ system( "/usr/sbin/deluser", $user->username( ), $s->groupname( ) );
$user->clear_groups( );
};