diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-07-13 12:11:24 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-07-13 12:11:24 -0600 |
commit | ed5e72568b40db990bc375aa86f94c35cc8c05cc (patch) | |
tree | f3815f6e74e1604dc9f060a76957ccbc1875dff7 | |
parent | fa94ee5653f053d6dfbe1fcad056d5262dbb6e2b (diff) | |
download | alpine-ed5e72568b40db990bc375aa86f94c35cc8c05cc.tar.xz |
* Bug: when moving to use realpath to resolve symbolic links, .pinerc
file would not be created if it did not exist.
-rw-r--r-- | pith/conf.c | 4 | ||||
-rw-r--r-- | pith/pine.hlp | 3 |
2 files changed, 7 insertions, 0 deletions
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. + <LI> Unix Alpine: First time users would not get their .pinerc file + created when starting Alpine. + <LI> Work in progress: Avoid calling non-safe functions when Alpine receives a signal. See bug report <A HREF="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825772">here.</A> |