Page MenuHome GnuPG

gnupg-2.1.21-use-realpath-T3295.patch

Authored By
kristianf
Jul 23 2017, 6:06 PM
Size
552 B
Subscribers
None

gnupg-2.1.21-use-realpath-T3295.patch

diff --git a/common/stringhelp.c b/common/stringhelp.c
index 0abac8ae5..a6ef190b1 100644
--- a/common/stringhelp.c
+++ b/common/stringhelp.c
@@ -32,6 +32,7 @@
*/
#include <config.h>
+#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
@@ -614,6 +615,11 @@ make_absfilename (const char *first_part, ... )
va_start (arg_ptr, first_part);
result = do_make_filename (3, first_part, arg_ptr);
va_end (arg_ptr);
+
+ char *rpath = realpath(result, NULL);
+ if (rpath)
+ return rpath;
+
return result;
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80868

Event Timeline