1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00
gnupg/common
Werner Koch 2f7d4c38c9
agent: Move inotify code to common and improve it.
* common/sysutils.c: Include sys/inotify.h.
(my_error_from_syserror, my_error): New.
(gnupg_inotify_watch_socket): New.
(gnupg_inotify_has_name): New.
* agent/gpg-agent.c: Do not include sys/inotify.h.
(my_inotify_is_name): Remove.
(handle_connections): Remove HAVE_INOTIFY_INIT protected code and use
the new functions.
--

When removing not a simple socket file but the entire directory the
old code missed most events and thus did not worked properly.

IN_DELETE_SELF has also been added to the watch list to detect a
removal of the directory.  However, in all tests that event was not
triggered.  The only way it could be triggered was by not watching
the socket dir but an arbitary directory and rmdir that.

GnuPG-bug-id: 2756
Signed-off-by: Werner Koch <wk@gnupg.org>
2016-10-15 21:35:05 +02:00
..
agent-opt.c agent: Move a typedef to common and provide parse_pinentry_mode. 2013-02-06 12:56:19 +01:00
argparse.c common: Annotate semi-static allocation. 2016-07-01 14:16:18 +02:00
argparse.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
asshelp.c Fix more spelling 2016-09-17 16:00:37 +09:00
asshelp.h common: Add an assuan logging monitor. 2016-09-05 11:58:48 +02:00
asshelp2.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
audit.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
audit.h Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
b64dec.c common: Fix possible small memory leak in b64dec.c. 2016-06-23 20:01:15 +02:00
b64enc.c Fix more spelling 2016-09-17 16:00:37 +09:00
call-gpg.c common: Extend gnupg_create_inbound_pipe et al. 2016-05-27 15:41:55 +02:00
call-gpg.h common: New file fwddecl.h. 2015-12-21 11:37:21 +01:00
ccparray.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
ccparray.h common: Add simple dynamic array function. 2016-05-24 15:43:16 +02:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
ChangeLog-2011.include include: Remove this directory. 2014-01-29 17:45:05 +01:00
ChangeLog.jnlib common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
common-defs.h common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
convert.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
dotlock.c common: Make sure dotlock functions set a proper ERRNO. 2016-01-13 14:42:12 +01:00
dotlock.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
dynload.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
exaudit.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
exechelp-posix.c common: Restore a simpler variant of 'gnupg_wait_process'. 2016-09-05 17:26:50 +02:00
exechelp-w32.c common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exechelp-w32ce.c common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exechelp.h common: Allow a second input stream for gnupg_exec_tool_stream. 2016-05-27 22:48:31 +02:00
exectool.c common: Avoid excessive stack use. 2016-07-26 14:49:02 +02:00
exectool.h common: Add a status callback to gnupg_exec_tool_stream. 2016-05-28 00:07:09 +02:00
exstatus.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
fwddecl.h common: New file utilproto.c 2016-08-03 15:27:13 +02:00
gc-opt-flags.h gpg: Add option --dirmngr-program. 2014-03-12 18:35:36 +01:00
get-passphrase.c common: Fix typo. 2016-09-05 14:05:19 +02:00
get-passphrase.h common: Remove homedir arg from start_new_{dirmngr,gpg_agent}. 2016-06-07 13:09:00 +02:00
gettime.c common: Avoid pointer arithmetic on string literals. 2016-10-06 14:48:52 +02:00
gettime.h common: New function rfctimestamp. 2016-06-28 15:53:59 +02:00
gnupg.ico w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgrlhelp.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
helpfile.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
homedir.c dirmngr: Remove all system daemon features. 2016-08-18 11:23:40 +02:00
host2net.h Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
i18n.c More cleanup of "allow to". 2016-08-03 16:55:33 +02:00
i18n.h Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
init.c agent, dirmngr, scd: Fix init_common_subsystems. 2016-10-07 10:45:22 +09:00
init.h Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
iobuf.c More cleanup of "allow to". 2016-08-03 16:55:33 +02:00
iobuf.h gpg: Rename pop_filter to iobuf_pop_filter and export it. 2016-03-02 20:36:16 +01:00
isascii.c common: Change license of isascii.c to all-premissive, 2015-12-14 16:21:19 +01:00
keyserver.h More cleanup of "allow to". 2016-08-03 16:55:33 +02:00
localename.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
logging.c w32: Fix build regression due to 2aa0701. 2016-08-29 20:05:02 +02:00
logging.h common: Add a default socket name feature. 2016-08-29 11:51:00 +02:00
Makefile.am build: Fix build against libiconv. 2016-09-30 17:45:59 +02:00
mapstrings.c Typo fix. 2015-03-17 09:18:23 +01:00
mbox-util.c doc: Some additional source comments 2016-08-24 15:31:44 +02:00
mbox-util.h common: Change license of mbox-util to LGPLv2.1+. 2016-08-22 20:44:23 +02:00
membuf.c common: New put_membuf_cb to replace static membuf_data_cb. 2016-01-08 06:33:27 +01:00
membuf.h common: New put_membuf_cb to replace static membuf_data_cb. 2016-01-08 06:33:27 +01:00
miscellaneous.c common: New function try_make_printable_string. 2016-08-10 19:53:53 +02:00
mischelp.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
mischelp.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
mkdir_p.c common: Make sure tilde expansion works for the mkdir functions. 2015-10-20 12:17:46 +02:00
mkdir_p.h common: Prefix the mkdir functions with gnupg_. Make args const. 2015-10-16 16:40:40 +02:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
mkerrtok Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
mkstrtable.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
name-value.c common: Check read errors in name-value.c 2016-09-02 16:56:04 +02:00
name-value.h common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
openpgp-oid.c common: Rename an odd named function. 2016-08-25 15:16:32 +02:00
openpgpdefs.h gpg: Add experimental support for an issuer fpr. 2016-06-20 23:59:18 +02:00
percent.c Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
README common: Update README. 2016-03-02 14:27:30 +01:00
recsel.c Fix more spelling 2016-09-17 16:00:37 +09:00
recsel.h common: Add function to select records etc. 2016-07-01 16:27:43 +02:00
server-help.c common: Consolidate Assuan server argument handling. 2016-03-02 14:14:33 +01:00
server-help.h common: Consolidate Assuan server argument handling. 2016-03-02 14:14:33 +01:00
session-env.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
session-env.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
sexp-parse.h doc: Note that the persistant passphrase format is unimplemented. 2016-04-12 14:38:44 +02:00
sexputil.c agent: More clean up of SSH support. 2016-08-08 18:55:53 +09:00
shareddefs.h agent: Move a typedef to common and provide parse_pinentry_mode. 2013-02-06 12:56:19 +01:00
signal.c common: Avoid pointer arithmetic on string literals. 2016-10-06 14:48:52 +02:00
simple-pwquery.c common: Remove unused vars in simple-pwquery. 2016-08-22 11:09:42 +02:00
simple-pwquery.h common: Remove simple password query error codes. 2016-08-11 09:52:08 +02:00
ssh-utils.c ssh: Fix fingerprint computation for EdDSA key. 2015-09-29 15:33:59 +09:00
ssh-utils.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
status.c common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
status.h g13: New command --find-device. 2016-08-13 13:49:41 +02:00
stringhelp.c common: New function string_to_u64. 2016-08-11 21:32:55 +02:00
stringhelp.h common: New function string_to_u64. 2016-08-11 21:32:55 +02:00
strlist.c common: Use new function to print a failure of xtrymalloc. 2016-04-25 17:26:57 +02:00
strlist.h common: Add 'free_strlist_wipe' which wipes memory. 2016-04-21 14:38:53 +02:00
sysutils.c agent: Move inotify code to common and improve it. 2016-10-15 21:35:05 +02:00
sysutils.h agent: Move inotify code to common and improve it. 2016-10-15 21:35:05 +02:00
t-b64.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-ccparray.c common: Add simple dynamic array function. 2016-05-24 15:43:16 +02:00
t-convert.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-dotlock.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-exechelp.c tests: Silence output of some tests. 2016-05-03 11:26:06 +02:00
t-exectool.c common: Add unit test for exectool. 2016-07-26 14:29:54 +02:00
t-gettime.c tests: Add a gettime test for sizeof (time_t) > 4. 2016-07-04 10:00:34 +02:00
t-helpfile.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
t-iobuf.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-mapstrings.c common: Do not deref vars in tests after a fail(). 2016-01-06 08:31:38 +01:00
t-mbox-util.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-name-value.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-openpgp-oid.c gpg: Add --list-gcrypt-config and "curve" item for --list-config. 2015-03-10 15:35:30 +01:00
t-percent.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
t-recsel.c common: Add string operator gt,ge,le,lt to recsel. 2016-09-05 09:52:04 +02:00
t-session-env.c tests: Silence output of some tests. 2016-05-03 11:26:06 +02:00
t-sexputil.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
t-ssh-utils.c ssh: Fix fingerprint computation for EdDSA key. 2015-09-29 15:33:59 +09:00
t-stringhelp.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-strlist.c common: Fix memory leaks. 2016-06-28 18:21:50 +02:00
t-support.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
t-support.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
t-sysutils.c Remove use of gnulib (part 2) 2014-11-11 15:14:31 +01:00
t-timestuff.c common: Do not deref vars in tests after a fail(). 2016-01-06 08:31:38 +01:00
t-w32-reg.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
t-zb32.c common: Improve t-zb32 to be used for manual encoding. 2015-10-30 12:40:22 +01:00
tlv.c common: Avoid warnings about useless assignments. 2016-01-06 08:35:56 +01:00
tlv.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
ttyio.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
ttyio.h Change some keyedit functions to allow printing to arbitrary streams. 2014-03-27 12:59:55 +01:00
types.h Remove replacements for libgpg-error < 1.21. 2015-12-12 14:06:30 +01:00
userids.c common: Avoid warnings about useless assignments. 2016-01-06 08:35:56 +01:00
userids.h Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
utf8conv.c w32: Replace libiconv DLL by iconv feature of libgpg-error. 2016-04-21 09:17:11 +02:00
utf8conv.h gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32 2016-01-26 09:53:42 +01:00
util.h common: Rename an odd named function. 2016-08-25 15:16:32 +02:00
utilproto.h common: New file utilproto.c 2016-08-03 15:27:13 +02:00
w32-reg.c common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
w32help.h common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
w32info-rc.h.in Update copyright years. 2015-02-03 09:12:45 +01:00
xasprintf.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
xreadline.c Change license for some files in common to LGPLv3+/GPLv2+. 2012-04-20 15:48:48 +02:00
yesno.c common: Change license of some modules to LGPLv3+/GPLv2+. 2015-12-14 16:21:19 +01:00
zb32.c common: Add missing header file for clarity. 2016-06-28 15:53:59 +02:00
zb32.h common: Add separate header for zb32.c. 2015-10-30 12:33:40 +01:00

Common functionality used by all modules of GnuPG.