Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F166535
gnupg-2.1.21-use-realpath-T3295.patch
kristianf (Kristian Fiskerstrand)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
kristianf
Jul 23 2017, 6:06 PM
2017-07-23 18:06:01 (UTC+2)
Size
552 B
Subscribers
None
gnupg-2.1.21-use-realpath-T3295.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80868
Attached To
T3295: homedir path needs sanitation
Event Timeline
Log In to Comment