NetBSD Problem Report #17409

Received: (qmail 13355 invoked by uid 605); 27 Jun 2002 11:36:40 -0000
Message-Id: <20020627113641.14EA611122@www.netbsd.org>
Date: Thu, 27 Jun 2002 04:36:41 -0700 (PDT)
From: wojtek@tensor.3miasto.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: wojtek@tensor.3miasto.net
To: gnats-bugs@gnats.netbsd.org
Subject: fressh can't work from scripts
X-Send-Pr-Version: www-1.0

>Number:         17409
>Category:       pkg
>Synopsis:       fressh can't work from scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jnemeth
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 27 11:37:01 +0000 2002
>Closed-Date:    Sat Feb 24 11:57:24 +0000 2007
>Last-Modified:  Sat Feb 24 11:57:24 +0000 2007
>Originator:     WOjciech Puchar
>Release:        1.6BETA2
>Organization:
TENSOR ap
>Environment:
NetBSD chylonia.3miasto.net 1.6_BETA2 NetBSD 1.6_BETA2 (local) #3: Tue Jun 25 13:12:51 CEST 2002     wojtek@chylonia.3miasto.net:/home/wojtek/kernel/local i386

>Description:
fressh exits with error if TERM variable doesn't exist. it's quite common
in cron started scripts etc.
>How-To-Repeat:

>Fix:
Please add it to package patches:

it uses terminal type "dump" if nothing is set


--- ssh_main.c  Sun Feb 11 04:35:12 2001
+++ /tmp/ssh_main.c     Thu Jun 27 13:35:47 2002
@@ -150,6 +150,8 @@
        context->client->RemoteCommand = NULL;
 }

+char dumbterm[]="dumb";
+
 int
 ssh_setup(ssh_context_t * context)
 {
@@ -190,10 +192,8 @@
        context->username = NULL;       /* will be remote user's name */

        context->usepty = 0;
-       if ((context->term = getenv("TERM")) == NULL) {
-               SSH_ERROR("cannot determine local terminal type\n");
-               exit(1);
-       }
+       if ((context->term = getenv("TERM")) == NULL) 
+               context->term=dumbterm;
        context->modes = NULL;
        context->msize = 0;



and another patch so make install strips installed binaries. they are 4 times smaller then
--- Makefile~   Thu Jun 27 13:17:00 2002
+++ Makefile    Thu Jun 27 13:27:53 2002
@@ -43,7 +43,7 @@
 LIBS+= -lutil -lcrypt -lz ${IDEA_LIB} -lcrypto ${MEMDEBUG_LINK}

 INSTALL=install
-INSTALL_FLAGS=-c -r -m 755 -o bin -g bin
+INSTALL_FLAGS=-s -c -r -m 755 -o bin -g bin
 FRE=fre

 HDRS = options.h ssh_buffer.h ssh_channel.h ssh_client.h ssh_defines.h \


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: wiz 
State-Changed-When: Sun Jul 14 14:22:50 PDT 2002 
State-Changed-Why:  
Forwarded to the fressh developers for comments. 
Responsible-Changed-From-To: pkg-manager->atatat 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Thu Apr 10 10:47:49 PDT 2003 
Responsible-Changed-Why:  
atatat has worked on freessh before... 
Responsible-Changed-From-To: atatat->jnemeth
Responsible-Changed-By: jnemeth@netbsd.org
Responsible-Changed-When: Sat, 24 Feb 2007 11:57:24 +0000
Responsible-Changed-Why:
I handled it.


State-Changed-From-To: analyzed->closed
State-Changed-By: jnemeth@netbsd.org
State-Changed-When: Sat, 24 Feb 2007 11:57:24 +0000
State-Changed-Why:
One of the FreSSH developers has said that nobody should be using it because
it only supports SSHv1 and has stop distributing the source tarball, thus the
package has been deleted.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.