Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2013 01:15:12 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r246142 - stable/9/usr.bin/truss
Message-ID:  <201301310115.r0V1FCVD065040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Thu Jan 31 01:15:12 2013
New Revision: 246142
URL: http://svnweb.freebsd.org/changeset/base/246142

Log:
  MFC r245956:
  truss: if file requested with -o flag could not be opened print the reason

Modified:
  stable/9/usr.bin/truss/main.c
Directory Properties:
  stable/9/usr.bin/truss/   (props changed)

Modified: stable/9/usr.bin/truss/main.c
==============================================================================
--- stable/9/usr.bin/truss/main.c	Thu Jan 31 00:14:25 2013	(r246141)
+++ stable/9/usr.bin/truss/main.c	Thu Jan 31 01:15:12 2013	(r246142)
@@ -235,7 +235,7 @@ main(int ac, char **av)
 
 	if (fname != NULL) { /* Use output file */
 		if ((trussinfo->outfile = fopen(fname, "w")) == NULL)
-			errx(1, "cannot open %s", fname);
+			err(1, "cannot open %s", fname);
 		/*
 		 * Set FD_CLOEXEC, so that the output file is not shared with
 		 * the traced process.



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