Date: Sun, 9 Jun 2019 11:21:29 +0000 (UTC) From: Mariusz Zaborski <oshogbo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348833 - head/usr.bin/tail Message-ID: <201906091121.x59BLT1T002635@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: oshogbo Date: Sun Jun 9 11:21:29 2019 New Revision: 348833 URL: https://svnweb.freebsd.org/changeset/base/348833 Log: tail: style nits Modified: head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/tail.c ============================================================================== --- head/usr.bin/tail/tail.c Sun Jun 9 08:22:38 2019 (r348832) +++ head/usr.bin/tail/tail.c Sun Jun 9 11:21:29 2019 (r348833) @@ -212,7 +212,8 @@ main(int argc, char *argv[]) file->file_name = strdup(fn); if (! file->file_name) errx(1, "Couldn't malloc space for file name."); - if ((file->fp = fileargs_fopen(fa, file->file_name, "r")) == NULL || + file->fp = fileargs_fopen(fa, file->file_name, "r"); + if (file->fp == NULL || fstat(fileno(file->fp), &file->st)) { if (file->fp != NULL) { fclose(file->fp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906091121.x59BLT1T002635>