Date: Thu, 2 Oct 1997 09:12:33 -0400 (EDT) From: Glen Foster <gfoster@gfoster.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/4679: xtend(8) doesn't handle the "dump" command correctly Message-ID: <199710021312.JAA01609@gfoster.intr.net> Resent-Message-ID: <199710021320.GAA25007@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4679 >Category: misc >Synopsis: xtend(8) doesn't handle the "dump" command correctly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 2 06:20:00 PDT 1997 >Last-Modified: >Originator: Glen Foster >Organization: self >Release: FreeBSD 2.2-STABLE i386 >Environment: affects only sites running the tw0 optional device driver and xtend(8)/xten(1) software. >Description: The xtend man page describes a command "dump" to the xtend daemon. As shipped, xtend tries to write the dump file to an inappropriate location, one where it has no write permission and is not logically tied to the program. >How-To-Repeat: Compile a kernel with the tw0 device, set xtend_enable="YES" in /etc/rc.conf. Run "xten -" and issue the command "dump" to the xtend daemon. Rather than writing a status.out file in /var/spool/xten/, the command will generate an error. >Fix: Apply the patch: *** /usr/src/libexec/xtend/user.c.orig Thu Oct 2 08:54:35 1997 --- /usr/src/libexec/xtend/user.c Thu Oct 2 08:55:05 1997 *************** *** 73,78 **** --- 73,79 ---- } } else if(!strcmp("dump\n", cmd)) { strcpy(dumppath, X10DIR); + strcat(dumppath, "/"); strcat(dumppath, X10DUMPNAME); if((dumpf = fopen(dumppath, "w")) != NULL) { for(h = 0; h < 16; h++) { >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710021312.JAA01609>