Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 1998 09:04:39 -0700 (PDT)
From:      motoyuki@jp.freebsd.org
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   ports/8208: emacsclient bug
Message-ID:  <199810081604.JAA24491@hub.freebsd.org>

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

>Number:         8208
>Category:       ports
>Synopsis:       emacsclient bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  8 09:10:00 PDT 1998
>Last-Modified:
>Originator:     Motoyuki Konno
>Organization:
>Release:        3.0-BETA
>Environment:
FreeBSD asuka.snipe.rim.or.jp 3.0-BETA FreeBSD 3.0-BETA #0:
Thu Oct  8 08:51:55 JST 1998
motoyuki@asuka.snipe.rim.or.jp:/usr/src/sys/compile/ASUKA  i386
>Description:
If hostname is more than 32 bytes, emacsclient (of emacs, emacs20, mule) fails.

In lib-src/emacsclient.c and lib-src/emacsserver.c,
>    gethostname (system_name, sizeof (system_name));
>    sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);

if hostname is more than 32 bytes (sizeof(system_name)), gethostname will
return non-null-terminated string. so the next line (sprintf) set
wrong string.
>How-To-Repeat:
First, set long hostname (more than 32 bytes)
In the Emacs, Emacs20, mule-* port, execute M-x server-start.

>Fix:
Commit following patches.
New files: editors/emacs/patches/patch-ba,
    editors/emacs20/patches/patch-ba,
    editors/mule-common/patches/patch-ba

begin 644 patches.tar.gz
M'XL(`#/@'#8``^V8>6_:,!B'^9=\BG>=>J208N>P(142E4:U3EHK==TA;1,*
MP91H.:H<E;I//SL)+6VA53;(IM4_0:R`[3AYG/!@-O'2*$XZC0T&3$0M"QH`
MF%I(E&#@HBR#``A!%%L46817P]3$#;`V.:AYLB1U8H!&$*713?;#6UV/Q4D=
M`ZHWK.0?9#[3W"@(HG#M<Z$"?XN_>3434\F_EBSC?^6D[HRM[YE0B;\A^%M$
MUR7_.O(4_[S4QLZ?'@,C1$QS)7],\$/^U,"T`6@=)_A<7CA_3=/`]\9:$KL=
M%CANXOH>"],#]R#R)\V+C,&[S`?=X"\;=VW#`-SK$:75:BUOUKR897#FI@!=
MT'7;,&W+%$VZRF``6L]L$VCQ;1<&`R6GGZ1QQJMS"L5F/(T/%2B^NV3I+$K2
MT`D8["4W2<J"D=AI0^+]9-'TWH>J>JBT\A[O/ONZK!YH@+]#'W:_H5W>I-GL
M["^V@8!/"1@S"#/?UU(6!U[HI&PB1NJ%E[#?*0=^Q7=3T3>+KUE\D&3AB-\Q
MLS9L==+@JL.2^'I[HFTG6VUQ(BSS)K"GMA</I=Z>J2?Z$9?@<6\[Y551H=\'
M#:O*(V1EDP+99SY2@0Q30-1&/5OOK4`V;_80F66C[ATRC"W!3!1S:`M#G#J!
MY]_PBWET//IX>O*%G]!K;QI.V!0^#,\_#<]';\_>#T=O3LZ5W^19"\TULA0D
ML]#WPA^/>BL)PLX.L#@.(WC5A^'IV?#T0E7^UOT_?_[G,V)#_P(J_?Y;F%<S
MD"']KY;<Y[]N\RM2C3\5_F\2(OG7D>7\UV5^12KY7\Z?8&)(_ZLCTO^D_TG_
MD_Z7SP@=;<0`*ZW_$D/XGUS_JRD/^6_"`*OPISE_D^A4\J\CJ_BOTP"7^!_H
MYJ+_Z7?W/Q+K?T0W_K7U/UYM.JUC0/7F&?_C9G"478+>!<2U@-HX]S_ZA/\=
MQUXA$SU`R#91V:20"1U3(1.BD`:X*0.<0\-<O+FT<Z,C*Z#=&N#3T$P]A\8+
8:8#_GP'*R,C(R,C(O+3\`B?]F\P`*```
`
end

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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