projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3126dc2
)
cleanup getgrnam error handling
author
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Fri, 13 Apr 2012 19:11:25 +0000
(21:11 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Fri, 13 Apr 2012 19:11:48 +0000
(21:11 +0200)
lib/CloudStore/API.pm
patch
|
blob
|
history
diff --git
a/lib/CloudStore/API.pm
b/lib/CloudStore/API.pm
index
1b4b27a
..
8a054ba
100644
(file)
--- a/
lib/CloudStore/API.pm
+++ b/
lib/CloudStore/API.pm
@@
-35,7
+35,8
@@
sub new {
sub slice_dir_port {
my ($self,$slice) = @_;
- my ( undef, $dir, $port, undef ) = getgrnam($slice) || die "getgrnam $slice: $!";
+ my ( undef, $dir, $port, undef ) = getgrnam($slice);
+ die "getgrnam $slice: $!" if $!;
warn "# slice_dir_port $slice = $dir $port\n";
return ( $dir, $port );
}