nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 83975027e5a9d2e2c9916b92c239e4f9e76fa53d
parent e39423b49d16dc33adc8ae638cfb3d57e17f0b85
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 29 Feb 2016 16:56:54 +0000

Not dereferencing symlinks, so that the syntax will be derived from the
name given on the command line, not from the name of the target file.
This fixes Savannah bug #47307.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 3+++
Msrc/color.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -6,6 +6,9 @@ * src/rcfile.c (parse_rcfile): Close an extended syntax again. * src/rcfile.c (parse_rcfile): Rename a variable. * src/rcfile.c (grab_and_store): Fix breakage of r5695. + * src/color.c (color_update): Do not dereference symlinks, so that + the syntax will be derived from the name given on the command line, + not from that of the target file. This fixes Savannah bug #47307. 2016-02-28 Benno Schulenberg <bensberg@justemail.net> * src/rcfile.c (parse_header_exp): Don't continue when something is diff --git a/src/color.c b/src/color.c @@ -215,7 +215,7 @@ void color_update(void) /* Concatenate the current working directory with the * specified filename, and canonicalize the result. */ sprintf(joinednames, "%s/%s", currentdir, openfile->filename); - fullname = realpath(joinednames, NULL); + fullname = get_full_path(joinednames); free(currentdir); }