From 8055f0935f14b761715fa4265b5efad1fb5627cd Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 6 Apr 2006 22:57:22 +0000
Subject: [PATCH] in open_file(), remove redundant wording in the error message
 when we try to open a device file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3358 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog   | 3 +++
 src/files.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c45e0d7c..8e22a096 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,9 @@ CVS code -
 	- Open all files in binary mode for consistency and robustness.
 	  Changes to load_history() and do_rcfile(). (DLR)
 - files.c:
+  open_file()
+	- Remove redundant wording in the error message when we try to
+	  open a device file. (DLR)
   safe_tempfile()
 	- Don't ignore $TMPDIR if it's set but blank, for consistency.
 	  (DLR)
diff --git a/src/files.c b/src/files.c
index 04b4b42b..24bea8ad 100644
--- a/src/files.c
+++ b/src/files.c
@@ -603,7 +603,7 @@ int open_file(const char *filename, bool newfie, FILE **f)
 	 * Sorry, /dev/sndstat! */
 	statusbar(S_ISDIR(fileinfo.st_mode) ?
 		_("\"%s\" is a directory") :
-		_("File \"%s\" is a device file"), filename);
+		_("\"%s\" is a device file"), filename);
 	beep();
 	return -1;
     } else if ((fd = open(filename, O_RDONLY)) == -1) {
-- 
GitLab