summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/Piny/Group.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/libpiny/Piny/Group.pm')
-rw-r--r--usr/src/libpiny/Piny/Group.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/libpiny/Piny/Group.pm b/usr/src/libpiny/Piny/Group.pm
index 8e0c2aa..3181033 100644
--- a/usr/src/libpiny/Piny/Group.pm
+++ b/usr/src/libpiny/Piny/Group.pm
@@ -55,11 +55,11 @@ sub BUILD {
my ( $s ) = @_;
if ( not ( $s->has_gid( ) or $s->has_groupname( ) ) ) {
- die "You must provide either GID or groupname!\n";
+ die "You must provide either GID or groupname!";
};
if ( $s->has_gid( ) and $s->has_groupname( ) ) {
- die "You must not provide both GID and groupname!\n";
+ die "You must not provide both GID and groupname!";
};
};
@@ -80,14 +80,14 @@ sub _build_grent {
if ( $s->has_gid( ) ) {
my @res = getgrgid( $s->gid( ) );
- die "getgrgid( " . $s->gid( ) . " ) failed: $!\n" unless @res;
+ die "getgrgid( " . $s->gid( ) . " ) failed: $!" unless @res;
return \@res;
} elsif ( $s->has_groupname( ) ) {
my @res = getgrnam( $s->groupname( ) );
- die "getgrnam( " . $s->groupname( ) . " ) failed: $!\n" unless @res;
+ die "getgrnam( " . $s->groupname( ) . " ) failed: $!" unless @res;
return \@res;
} else {
- die "Not enough information provided to lookup group!\n";
+ die "Not enough information provided to lookup group!";
};
};