From: Christian Grothoff Date: Wed, 20 Jun 2012 18:48:08 +0000 (+0000) Subject: -fixing #2439 X-Git-Tag: initial-import-from-subversion-38251~12914 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=653e181509c0798bf9ca999a2141d7e2a6552aef;p=oweals%2Fgnunet.git -fixing #2439 --- diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 085845a0b..762e2faca 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h @@ -68,11 +68,23 @@ struct GNUNET_NETWORK_FDSet }; - #include "gnunet_disk_lib.h" #include "gnunet_time_lib.h" +/** + * Given a unixpath that is too long (larger than UNIX_PATH_MAX), + * shorten it to an acceptable length while keeping it unique + * and making sure it remains a valid filename (if possible). + * + * @param unixpath long path, will be freed (or same pointer returned + * with moved 0-termination). + * @return shortened unixpath, NULL on error + */ +char * +GNUNET_NETWORK_shorten_unixpath (char *unixpath); + + /** * Accept a new connection on a socket. Configure it for non-blocking * IO and mark it as non-inheritable to child processes (set the