summaryrefslogtreecommitdiff
path: root/pith/charconv
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-07 21:14:19 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-07 21:14:19 -0600
commitd1300c95499f3b422c2299432eb4acc93cf4618a (patch)
treef516d0630fbb085ac689c2010e07cbbe6c281ca5 /pith/charconv
parent6c702a26f10f04bf225aa914b2eae5b89e3d0b4a (diff)
downloadalpine-d1300c95499f3b422c2299432eb4acc93cf4618a.tar.xz
* Experimental: Alpine can pass an HTML message to an external web browser, by using
the "External" command in the ATTACHMENT INDEX screen. * Experimental: New configuration variable "External Command Loads Inline Images Only" that controls if Alpine will pass to an external browser a link to all the images in the HTML message, or will only pass a link to inline images included in the message. For your privacy and security this feature is enabled by default.
Diffstat (limited to 'pith/charconv')
-rw-r--r--pith/charconv/filesys.c19
-rw-r--r--pith/charconv/filesys.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/pith/charconv/filesys.c b/pith/charconv/filesys.c
index be8e323f..c8b1c8d9 100644
--- a/pith/charconv/filesys.c
+++ b/pith/charconv/filesys.c
@@ -500,6 +500,25 @@ our_rename(char *oldpath, char *newpath)
#endif /* UNIX */
}
+int
+our_rmdir(char *path)
+{
+#ifdef _WINDOWS
+ LPTSTR p = NULL;
+ int ret = -1;
+
+ p = utf8_to_lptstr((LPSTR) path);
+
+ if(p){
+ ret = _trmdir(p);
+ fs_give((void **) &p);
+ }
+
+ return ret;
+#else /* UNIX */
+ return(rmdir(fname_to_locale(path)));
+#endif /* UNIX */
+}
int
our_unlink(char *path)
diff --git a/pith/charconv/filesys.h b/pith/charconv/filesys.h
index 8b18ffa9..a30b18e2 100644
--- a/pith/charconv/filesys.h
+++ b/pith/charconv/filesys.h
@@ -37,6 +37,7 @@ int our_creat(char *, mode_t);
int our_mkdir(char *, mode_t);
int our_rename(char *, char *);
int our_unlink(char *);
+int our_rmdir(char *);
int our_link(char *, char *);
int our_lstat(char *, struct stat *);
int our_chmod(char *, mode_t);