try to open a device file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3358
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- 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)
* 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) {