a non-existent file for reading succeeds.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5565
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
2016-01-15 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (set_modified): Plug another memory leak.
+ * src/files.c (open_file): Return the fantastic file descriptor
+ when opening a non-existent file for reading succeeds.
2016-01-15 Mike Frysinger <vapier@gentoo.org>
* src/files.c (open_file): Free the full filename in all cases.
if ((fd = open(filename, O_RDONLY)) != -1) {
if (!quiet)
statusbar(_("Reading File"));
- return 0;
+ return fd;
}
if (newfie) {