summaryrefslogtreecommitdiffstats
path: root/contrib/file/file.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-02-28 05:19:36 +0000
committerobrien <obrien@FreeBSD.org>2003-02-28 05:19:36 +0000
commitf35360c37203a2efe4238a8ec8dd5c45cde0820b (patch)
tree1705752f770500133cc84f6e74036f0089e1421d /contrib/file/file.c
parent822cce384d16c9a63f80e0c0765717d4a329368d (diff)
downloadFreeBSD-src-f35360c37203a2efe4238a8ec8dd5c45cde0820b.zip
FreeBSD-src-f35360c37203a2efe4238a8ec8dd5c45cde0820b.tar.gz
Virgin import of Christos Zoulas's FILE 3.41.
* - fix memory allocation problem (Jeff Johnson) * - fix stack overflow corruption (David Endler)
Diffstat (limited to 'contrib/file/file.c')
-rw-r--r--contrib/file/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file/file.c b/contrib/file/file.c
index 5dedd9b..2ccd8ca 100644
--- a/contrib/file/file.c
+++ b/contrib/file/file.c
@@ -58,7 +58,7 @@
#include "patchlevel.h"
#ifndef lint
-FILE_RCSID("@(#)$Id: file.c,v 1.68 2003/02/08 18:33:53 christos Exp $")
+FILE_RCSID("@(#)$Id: file.c,v 1.69 2003/02/27 20:47:46 christos Exp $")
#endif /* lint */
@@ -429,7 +429,7 @@ process(const char *inname, int wid)
if ((fd = open(inname, O_RDONLY)) < 0) {
/* We can't open it, but we were able to stat it. */
- if (sb.st_mode & 0002) ckfputs("writeable, ", stdout);
+ if (sb.st_mode & 0002) ckfputs("writable, ", stdout);
if (sb.st_mode & 0111) ckfputs("executable, ", stdout);
ckfprintf(stdout, "can't read `%s' (%s).\n",
inname, strerror(errno));
OpenPOWER on IntegriCloud