Date: Mon, 26 Apr 2004 10:54:46 +0200 (CEST) From: Palle Girgensohn <girgen@pingpong.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ache@FreeBSD.org Subject: ports/65980: bugfix for apache's dbmmanage Message-ID: <200404260854.i3Q8sk2k064280@rambutan.pingpong.net> Resent-Message-ID: <200404260900.i3Q90Ssg081065@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 65980 >Category: ports >Synopsis: bugfix for apache's dbmmanage >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 26 02:00:27 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Palle Girgensohn >Release: FreeBSD 4.9-STABLE i386 >Organization: Ping Pong AB >Environment: System: FreeBSD rambutan.pingpong.net 4.9-STABLE FreeBSD 4.9-STABLE #1: Tue Mar 16 00:35:48 CET 2004 girgen@rambutan.pingpong.net:/.a/banan/usr/obj/usr/src/sys/ASUS i386 >Description: dbmmanage doesn't recognize the $1$ md5 prefix used by FreeBSD when checking a password using "dbmmanage passwdfile check". This patch fixes this. Also I supply a bonus patch, that patches rotatelogs to always keep a hardlink to the latest log file, but without the seconds-since-epoch integer. Just as a convenience - when developing web apps, it makes it easier to just check the log file. It would be nice to have this in the ports tree. >How-To-Repeat: >Fix: These two patch files should be added to ports/www/apache13/files and ports/www/apache13-modssl/files, at least. -------------------------------------------------------------- --- src/support/dbmmanage~ Tue Oct 10 06:23:58 2000 +++ src/support/dbmmanage Sun Dec 3 00:45:08 2000 @@ -338,7 +338,7 @@ } elsif (substr($chkpass, 0, 5) eq '{SHA}') { need_sha1_crypt; $crypt_method = "sha1"; - } elsif (length($chkpass) == 13 && $chkpass ne $testpass) { + } elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) { $crypt_method = "crypt"; } else { $crypt_method = "plain"; -------------------------------------------------------------- -------------------------------------------------------------- --- src/support/rotatelogs.c~ Mon Aug 3 11:15:33 1998 +++ src/support/rotatelogs.c Sun Mar 26 22:42:40 2000 @@ -11,6 +11,7 @@ #include <time.h> #include <errno.h> #include <fcntl.h> +#include <unistd.h> #define BUFSIZE 65536 #define ERRMSGSZ 82 @@ -95,6 +96,8 @@ } else { close(nLogFDprev); + unlink(szLogRoot); + link(buf2, szLogRoot); } nMessCount = 0; } -------------------------------------------------------------- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404260854.i3Q8sk2k064280>