mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: New functions gnupg_opendir et al.
* common/sysutils.h (struct gnupg_dirent_s): New.
* common/sysutils.c: Include dirent.h.
(struct gnupg_dir_s): New.
(gnupg_opendir, gnupg_readdir, gnupg_closedir): New. Change all
callers of opendir, readdir, and closedir to use these functions.
--
GnuPG-bug-id: 5098
Backported-from-master: 7e22e08e2a
This commit is contained in:
parent
4252cd7b18
commit
5f8123df78
8 changed files with 210 additions and 37 deletions
|
@ -1277,7 +1277,7 @@ main (int argc, char **argv)
|
|||
{
|
||||
log_error (_("error binding socket to '%s': %s\n"),
|
||||
serv_addr.sun_path,
|
||||
gpg_strerror (gpg_error_from_errno (errno)));
|
||||
gpg_strerror (gpg_error_from_syserror ()));
|
||||
assuan_sock_close (fd);
|
||||
dirmngr_exit (1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue