Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 1998 15:23:08 +0900 (JST)
From:      sanpei@yy.cs.keio.ac.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5603: update of net/gnu-finger (fingerd has core dump problem)
Message-ID:  <199801300623.PAA06045@lavender.rad.cc.keio.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         5603
>Category:       ports
>Synopsis:       update of net/gnu-finger (fingerd has core dump problem)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 29 22:50:01 PST 1998
>Last-Modified:
>Originator:     MIHIRA Yoshiro
>Organization:
Keio Univ.
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:
>Description:

	I'm maintainer of net/gnu-finger.

	GNU fingerd has -i option which is set polling interval.
	But if it's set, fingerd was core dump.

	Because -i option needs option string, on the other hand 
	getopt argument in fingerd.c for -i option does not have 
	`:' character.

	I fix and updated my gnu-finger port.

	CHANGES:
		o add gnu-finger/patches/patch-ag file

Thank you.

>How-To-Repeat:

	execute fingerd with -i option.

% /usr/local/libexec/fingerd -i 30
Segmentation fault

>Fix:
	
diff -uNr gnu-finger.org/patches/patch-ag gnu-finger/patches/patch-ag
--- gnu-finger.org/patches/patch-ag	Thu Jan  1 09:00:00 1970
+++ gnu-finger/patches/patch-ag	Thu Jan 15 19:21:17 1998
@@ -0,0 +1,11 @@
+--- src/fingerd.c.org	Thu Oct 29 00:12:52 1992
++++ src/fingerd.c	Thu Jan 15 19:19:46 1998
+@@ -145,7 +145,7 @@ main (argc, argv)
+   default_error_handling (argv[0]);
+ 
+   /* Parse arguments. */
+-  while ((optc = getopt_long (argc, argv, "datfi", longopts, NULL)) >= 0)
++  while ((optc = getopt_long (argc, argv, "datfi:", longopts, NULL)) >= 0)
+     switch (optc)
+       {
+       case 'd':

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801300623.PAA06045>