still more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3354 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
5cbd990bf5
commit
9308e5210b
|
@ -599,7 +599,8 @@ int open_file(const char *filename, bool newfie, FILE **f)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (S_ISDIR(fileinfo.st_mode) || S_ISCHR(fileinfo.st_mode) ||
|
} else if (S_ISDIR(fileinfo.st_mode) || S_ISCHR(fileinfo.st_mode) ||
|
||||||
S_ISBLK(fileinfo.st_mode)) {
|
S_ISBLK(fileinfo.st_mode)) {
|
||||||
/* Don't open character or block files. Sorry, /dev/sndstat! */
|
/* Don't open directories, character files, or block files.
|
||||||
|
* Sorry, /dev/sndstat! */
|
||||||
statusbar(S_ISDIR(fileinfo.st_mode) ?
|
statusbar(S_ISDIR(fileinfo.st_mode) ?
|
||||||
_("\"%s\" is a directory") :
|
_("\"%s\" is a directory") :
|
||||||
_("File \"%s\" is a device file"), filename);
|
_("File \"%s\" is a device file"), filename);
|
||||||
|
@ -610,8 +611,7 @@ int open_file(const char *filename, bool newfie, FILE **f)
|
||||||
beep();
|
beep();
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
/* File is A-OK. Open it in binary mode for our own end-of-line
|
/* The file is A-OK. Open it. */
|
||||||
* character munging. */
|
|
||||||
*f = fdopen(fd, "rb");
|
*f = fdopen(fd, "rb");
|
||||||
|
|
||||||
if (*f == NULL) {
|
if (*f == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue