On Wednesday, September 3, 2003, at 05:08 PM, James H. Thompson wrote:
The -r option for vadddomain is broken in 5.3.26.
it always prompts for a password whether or not you use the -r.


Thanks for the bug report. Here's the fix:


--- vpopmail-5.3.26/vadddomain.c Fri Aug 22 18:00:03 2003
+++ vpopmail-5.3.27/vadddomain.c Wed Sep 3 22:21:08 2003
@@ -232,7 +232,7 @@
if ( optind < argc ) {
snprintf(Passwd, sizeof(Passwd), "%s", argv[optind]);
++optind;
- } else {
+ } else if (!RandomPw) {
/* if no postmaster password specified, then prompt user to enter one */
snprintf(Passwd, sizeof(Passwd), "%s", vgetpasswd("postmaster"));
}


--- vpopmail-5.3.26/vadddomain.c        Fri Aug 22 18:00:03 2003
+++ vpopmail-5.3.27/vadddomain.c        Wed Sep  3 22:21:08 2003
@@ -232,7 +232,7 @@
     if ( optind < argc ) {
        snprintf(Passwd, sizeof(Passwd), "%s", argv[optind]);
        ++optind;
-    } else {
+    } else if (!RandomPw) {
       /* if no postmaster password specified, then prompt user to enter one */
        snprintf(Passwd, sizeof(Passwd), "%s", vgetpasswd("postmaster"));
     }


--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester

Reply via email to