diff options
Diffstat (limited to 'pith/conf.c')
-rw-r--r-- | pith/conf.c | 4 |
1 files changed, 4 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 |