From ed5e72568b40db990bc375aa86f94c35cc8c05cc Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 13 Jul 2016 12:11:24 -0600 Subject: * Bug: when moving to use realpath to resolve symbolic links, .pinerc file would not be created if it did not exist. --- pith/conf.c | 4 ++++ pith/pine.hlp | 3 +++ 2 files changed, 7 insertions(+) (limited to 'pith') diff --git a/pith/conf.c b/pith/conf.c index 79243222..9868013e 100644 --- a/pith/conf.c +++ b/pith/conf.c @@ -5962,6 +5962,10 @@ write_pinerc(struct pine *ps, EditWhich which, int flags) #ifndef _WINDOWS if ((realfilename = realpath(filename, NULL)) != NULL) realfilename_malloced = 1; + else if(our_stat(filename, &sbuf) < 0 && errno == ENOENT){ + realfilename = filename; + realfilename_malloced = 0; + } else goto io_err; #else diff --git a/pith/pine.hlp b/pith/pine.hlp index 36947fb6..9629ef6e 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -373,6 +373,9 @@ Bugs that have been addressed include: of the certificate to lowercase, which may make Alpine not be able to read such certificate. Reported by Dennis Davis. +
  • Unix Alpine: First time users would not get their .pinerc file + created when starting Alpine. +
  • Work in progress: Avoid calling non-safe functions when Alpine receives a signal. See bug report here. -- cgit v1.2.3-54-g00ecf