projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacf4bf
)
Handle no max RID
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 22 Feb 2008 19:39:18 +0000
(19:39 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 22 Feb 2008 19:39:18 +0000
(19:39 +0000)
samba/samba-lib.pl
patch
|
blob
|
history
diff --git
a/samba/samba-lib.pl
b/samba/samba-lib.pl
index
8e3a65f
..
5a4c807
100644
(file)
--- a/
samba/samba-lib.pl
+++ b/
samba/samba-lib.pl
@@
-858,9
+858,7
@@
if ($has_smbgroupedit) {
}
else {
$out = &backquote_logged("$config{'net'} -s $config{'smb_conf'} maxrid 2>&1");
- $out =~ /rid:\s+(\d+)/ ||
- &error("$config{'net'} failed : <pre>$out</pre>");
- local $maxrid = $1 + 1;
+ local $maxrid = $out =~ /rid:\s+(\d+)/ ? $1 + 1 : undef;
$maxrid = 1000 if ($maxrid < 1000); # Should be >1000
$out = &backquote_logged(
"$config{'net'} -s $config{'smb_conf'} groupmap add".