summaryrefslogtreecommitdiff
path: root/pith/conf.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-08-04 21:50:43 -0600
committerEduardo Chappa <chappa@washington.edu>2013-08-04 21:50:43 -0600
commit82ec113957d8297ed08c51c20cbc4b0a6f623d4e (patch)
treebc58ae92ca1627554947f894206af9a47e8cee60 /pith/conf.c
parent33d5c0604e830bb65c2f5ccd69170b1c1453802b (diff)
downloadalpine-82ec113957d8297ed08c51c20cbc4b0a6f623d4e.tar.xz
* New version 2.10.99999
* Pico: search backwards. * do not allow List- headers to be set up by users in accordance with RFC 2369. * minor fixes for new justification support (add comparison of a line with the previous *and* the next).
Diffstat (limited to 'pith/conf.c')
-rw-r--r--pith/conf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pith/conf.c b/pith/conf.c
index 990688aa..10c64cfa 100644
--- a/pith/conf.c
+++ b/pith/conf.c
@@ -4,8 +4,8 @@ static char rcsid[] = "$Id: conf.c 1266 2009-07-14 18:39:12Z hubert@u.washington
/*
* ========================================================================
- * Copyright 2006-2009 University of Washington
* Copyright 2013 Eduardo Chappa
+ * Copyright 2006-2009 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -5873,7 +5873,8 @@ write_pinerc(struct pine *ps, EditWhich which, int flags)
#ifndef _WINDOWS
/* if .pinerc is a symbolic link, override symbolic link */
- if(our_lstat(filename, &sbuf) == 0){
+ if(our_lstat(filename, &sbuf) == 0
+ && ((sbuf.st_mode & S_IFMT) == S_IFLNK)){
if((slink = fs_get((sbuf.st_size+1)*sizeof(char))) != NULL){
int r = -1; /* assume error */
if(readlink(filename, slink, sbuf.st_size + 1) >= 0){
@@ -8311,3 +8312,4 @@ pcpine_general_help(titlebuf)
}
#endif /* _WINDOWS */
+