From owner-freebsd-current@FreeBSD.ORG Fri Jun 3 20:47:59 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A073106567E for ; Fri, 3 Jun 2011 20:47:59 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id D41A28FC0C for ; Fri, 3 Jun 2011 20:47:58 +0000 (UTC) Received: by vxc34 with SMTP id 34so2322724vxc.13 for ; Fri, 03 Jun 2011 13:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9m2J+CIt6642stIOWDDWH5wKOf582iq4nl5qM75CD2s=; b=Go8FL30JlOnquJcE0YKyclLOMrc0Ia82LbvUsn387+EZ0fnOQsNG8QU7jAg1vOLiFD CanLF4o4Q7LEQUZdEbIIgiEZtAczYbS6OW7QhYeHbInuqG0N/Ye8q5/minzdoVtw8VgD wWxuDM4gzpMSKmPXu+aBLOAh0lG7CE9C1nEqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rWYxot70pWnU5ZZXi++TpWI5YSj7Wjj6DtLHqpDVMnp/bd3GWyPPLSXRZ265ZbzyP6 lNEmYbIuOhUegXSHeZUXyZ6vkci7KdFPBwx6NS+6sZXTb003dRXrMpVTtO+irocgLyKa m4/bI0qJGOg6JR2VOSWfAcVAdKu6Oy5lYquQY= MIME-Version: 1.0 Received: by 10.220.213.195 with SMTP id gx3mr39146vcb.23.1307134077847; Fri, 03 Jun 2011 13:47:57 -0700 (PDT) Received: by 10.220.181.139 with HTTP; Fri, 3 Jun 2011 13:47:57 -0700 (PDT) In-Reply-To: <20110603204358.GC50646@hoeg.nl> References: <20110603204358.GC50646@hoeg.nl> Date: Fri, 3 Jun 2011 13:47:57 -0700 Message-ID: From: Garrett Cooper To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: llimport(8): Import lastlog into utmpx X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 20:47:59 -0000 On Fri, Jun 3, 2011 at 1:43 PM, Ed Schouten wrote: > Hi all, > > I think not long after I replaced utmp with utmpx, I got requests to add > utilities to convert the old utmp databases to the new formats. I added > wtmpcvt(1) for /var/log/wtmp*, but I didn't add any tools for the other > databases. Even though it's a bit overdue (more than one year later?), I > think it wouldn't be a bad idea to add a utility to import lastlog for > people who are going to upgrade from 7.x/8.x to 9.0. > > I've written a utility called llimport(8), which imports entries from > lastlog into utx.lastlogin for users which do not already have an entry > in the latter. I've also added an rc-script, which executes llimport > when /var/log/lastlog is present and renames the old database to > /var/log/lastlog.old. > > Any objections if I commit the following patch to HEAD one of these > days? I will remove it from HEAD not long after we release 9.0, since an > upgrade from 8.x to 10.x should go through 9.x anyway. > > =A0 =A0 =A0 =A0http://80386.nl/pub/llimport.txt > > It would be nice if someone could look at the rc script. I think it > should be okay, but it's not a part of the tree I'm familiar with. Is this a one time change? If so, wouldn't it make more sense to put this into mergemaster(8) instead of rc(5)? Thanks! -Garrett