Subject: misc/10904: ssh1.2.30 compil error Mac68k/NetBSD1.4.2
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric Deveaud <edeveaud@thelma.sis.pasteur.fr>
List: netbsd-bugs
Date: 08/28/2000 07:12:13
>Number: 10904
>Category: misc
>Synopsis: ssh1.2.30 error during compilation, sshd.c:2972: syntax error before `<'
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 28 07:13:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Eric Deveaud
>Release: <NetBSD-current source date>NetBSD 1.4.2 (GENERIC)
>Organization:
>Environment:
System: NetBSD thelma.sis.pasteur.fr 1.4.2 NetBSD 1.4.2 (GENERIC) #4: Sat Mar 18 01:16:20 CST 2000 fredb@corwin.home:/s/src/sys/arch/mac68k/compile/GENERIC mac68k
>Description:
Compilation of ssh1.2.30 hangs with sytax error on file sshd.c
due to a bracket
as the malformed block is enclosed between
#if defined(HAVE_CHFLAGS) && defined(UF_NODUMP)
and
#endif /* HAVE_CHFLAGS && UF_NODUMP*/
it pop ups on BSD systems.
here is the faulty code
thelma: > less -N +2959 sshd.c
2959 if (chflags(ttyname, st.st_flags &
2960 #ifdef UF_NODUMP
2961 UF_NODUMP |
2962 #endif /* UF_NODUMP */
2963 #ifdef UF_IMMUTABLE
2964 UF_IMMUTABLE |
2965 #endif /* UF_IMMUTABLE */
2966 #ifdef UF_APPEND
2967 UF_APPEND |
2968 #endif /* UF_APPEND */
2969 #ifdef UF_OPAQUE
2970 UF_OPAQUE |
2971 #endif /* UF_OPAQUE */
2972 0)) < 0)
^
|
>How-To-Repeat:
just try to compile sshd.c on a BSD system
>Fix:
find enclosed a trivial patch to correct this problem on a BSD system
# this is a patch to correct sshd.c source file
2972c2972
< 0) < 0)
---
> 0)) < 0)
>Release-Note:
>Audit-Trail:
>Unformatted: