summaryrefslogtreecommitdiffstats
path: root/common/mkdir_p.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace all calls to stat by gnupg_stat.Werner Koch2020-10-201-1/+1
| | | | | | | | | | | * common/sysutils.c (gnupg_stat): New. * common/sysutils.h: Include sys/stat.h. -- Yet another wrapper for Unicode support on Windows. GnuPG-bug-id: 5098 Signed-off-by: Werner Koch <wk@gnupg.org>
* Change all http://www.gnu.org in license notices to https://Werner Koch2016-11-051-1/+1
| | | | --
* common: Make sure tilde expansion works for the mkdir functions.Neal H. Walfield2015-10-201-1/+1
| | | | | | | | | | | * common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the first directory component as well. -- If there is only a single directory component, then tilde expansion won't be done. Signed-off-by: Neal H. Walfield <neal@g10code.com>
* common: Avoid warning about const char ** assignment.Werner Koch2015-10-181-6/+11
| | | | | | | | | | | | | * common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item. Return an error on malloc failure. (gnupg_mkdir_p): Fix type of dirs and tmp_dirs. -- The code was correct but it inhibits type checking. Instead of casting it seems easier to simply allocate also the the first item in DIRS. Signed-off-by: Werner Koch <wk@gnupg.org>
* common: Prefix the mkdir functions with gnupg_. Make args const.Neal H. Walfield2015-10-161-3/+3
| | | | | | | | | | | | | | | | | | * common/mkdir_p.h (mkdir_p): Rename from this... (gnupg_mkdir_p): ... to this. Change directory_component's type from char * to const char *. (amkdir_p): Rename from this... (gnupg_amkdir_p): ... to this. Change directory_component's type from char * to const char *. * common/mkdir_p.c (mkdir_p): Rename from this... (gnupg_mkdir_p): ... to this. Change directory_component's type from char * to const char *. (amkdir_p): Rename from this... (gnupg_amkdir_p): ... to this. Change directory_component's type from char * to const char *. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
* common: Allow building of mkdir_p.c for Windows.Werner Koch2015-10-081-56/+77
| | | | | | | | | | | | * common/mkdir_p.c: Change license and comment debug statements. (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to build an error code. Change return value to gpg_error_t. (amkdir_p): Use gnupg_mkdir. * common/membuf.c: Include util.h first to avoid redefined macro warnings. Signed-off-by: Werner Koch <wk@gnupg.org>
* Fix two unused/possible-uninitialized var warnings.Werner Koch2015-10-081-1/+1
| | | | --
* common: Add mkdir_p.Neal H. Walfield2015-09-301-0/+161
* common/mkdir_p.c: New file. * common/mkdir_p.h: New file. * common/Makefile.am (common_sources): Add mkdir_p.c and mkdir_p.h. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.