From owner-freebsd-bugs Tue Jan 30 22:40:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1DA5937B4EC for ; Tue, 30 Jan 2001 22:40:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0V6e5b21361; Tue, 30 Jan 2001 22:40:05 -0800 (PST) (envelope-from gnats) Date: Tue, 30 Jan 2001 22:40:05 -0800 (PST) Message-Id: <200101310640.f0V6e5b21361@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Alex Kapranoff Subject: Re: bin/24742: adduser sequences wrongly for Maildirs Reply-To: Alex Kapranoff Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/24742; it has been noted by GNATS. From: Alex Kapranoff To: roelof@eboa.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/24742: adduser sequences wrongly for Maildirs Date: Wed, 31 Jan 2001 09:21:17 +0300 On Tue, Jan 30, 2001 at 10:01:09PM +0100, root@nl.nisser.com wrote: > > >Number: 24742 > >Category: bin > >Synopsis: send adduser.message before dirs are created > >Description: > > when using adduser in a setting where Maildirs are used the complementary > adduser.message can not be delivered since it gets send before the > actual userdirs have been created and filled from skeleton. Hence > postfix, in my case, will complain. Applying this patch in /usr/src/usr.sbin/adduser/ should fix it for some values of 'fix': --- /usr/src/usr.sbin/adduser/adduser.perl Thu Dec 14 22:12:25 2000 +++ adduser.perl Wed Jan 31 09:14:00 2001 @@ -711,9 +711,9 @@ &new_users_pwdmkdb("$new_entry"); &new_users_group_update; &new_users_passwd_update; print "Added user ``$name''\n"; - &new_users_sendmessage; &adduser_log("$name:*:$u_id:$g_id($group_login):$fullname"); &home_create($userhome, $name, $group_login); + &new_users_sendmessage; } else { $new_users_ok = 0; } -- Alex Kapranoff, Voice: +7(0832)791845 We've lived 30 days in the brand new millenium... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message