Menu

#1337 Address Mappings (virtuser) uses incorrect index/number

1.110
closed
5
2003-10-22
2003-10-22
Steve Yates
No

At some point since updating to Webmin 1.110 and
VirtualMin 1.5, I noticed that all the "Mail for.."
links in the Address Mappings section show an index of
0. The effect is that only the first entry can be edited.

I'm not a Perl expert but I suspect the problem lies in
the virtusers-lib.pl file, where the list_virtusers()
function contains the line

$virt{'num'} = scalar(@rv);

All other references to @rv in this function have been
removed compared to the 1.100 file, so should this line
now read

$virt{'num'} = scalar(@list_virtusers_cache);

? If I make that change it seems to work fine.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2003-10-22

    Logged In: YES
    user_id=129364

    Yes, I noticed this bug myself ..
    An updated version of the virtualmin package is already available for
    download that includes the exact same fix.

     
  • Jamie Cameron

    Jamie Cameron - 2003-10-22
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB