{"thread":{"id":"13862","subject":"[PATCH] make_nonrelative_path: Use is_absolute_path()","startedAt":"2008-06-08T14:34:40Z","lastAt":"2008-06-08T14:34:40Z","messageCount":1,"participants":["Johannes Sixt"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"79113","messageId":"200806081634.40882.johannes.sixt@telecom.at","threadId":"13862","inReplyTo":null,"subject":"[PATCH] make_nonrelative_path: Use is_absolute_path()","fromName":"Johannes Sixt","fromEmail":"johannes.sixt@telecom.at","sentAt":"2008-06-08T14:34:40Z","receivedAt":"2008-06-08T14:34:40Z","isPatch":true,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"This helps porting to Windows.\n\nSigned-off-by: Johannes Sixt <johannes.sixt@telecom.at>\n---\n path.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/path.c b/path.c\nindex 7c3b89a..5da41c7 100644\n--- a/path.c\n+++ b/path.c\n@@ -321,7 +321,7 @@ const char *make_nonrelative_path(const char *path)\n {\n \tstatic char buf[PATH_MAX + 1];\n \n-\tif (path[0] == '/') {\n+\tif (is_absolute_path(path)) {\n \t\tif (strlcpy(buf, path, PATH_MAX) >= PATH_MAX)\n \t\t\tdie (\"Too long path: %.*s\", 60, path);\n \t} else {\n-- \n1.5.6.rc2.6.g3056b\n"}]}