Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/812770/?format=api
{ "id": 812770, "url": "http://patchwork.ozlabs.org/api/patches/812770/?format=api", "web_url": "http://patchwork.ozlabs.org/project/swupdate/patch/1505214815-19857-1-git-send-email-sbabic@denx.de/", "project": { "id": 58, "url": "http://patchwork.ozlabs.org/api/projects/58/?format=api", "name": "swupdate development", "link_name": "swupdate", "list_id": "swupdate.googlegroups.com", "list_email": "swupdate@googlegroups.com", "web_url": "https://github.com/sbabic/swupdate", "scm_url": "git://github.com/sbabic/swupdate", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1505214815-19857-1-git-send-email-sbabic@denx.de>", "list_archive_url": null, "date": "2017-09-12T11:13:35", "name": "Fix usage of TMPDIR", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "2d14674973cbc5c8698dc52ee5f50c1bd91c3ca0", "submitter": { "id": 5771, "url": "http://patchwork.ozlabs.org/api/people/5771/?format=api", "name": "Stefano Babic", "email": "sbabic@denx.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/swupdate/patch/1505214815-19857-1-git-send-email-sbabic@denx.de/mbox/", "series": [ { "id": 2663, "url": "http://patchwork.ozlabs.org/api/series/2663/?format=api", "web_url": "http://patchwork.ozlabs.org/project/swupdate/list/?series=2663", "date": "2017-09-12T11:13:35", "name": "Fix usage of TMPDIR", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2663/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/812770/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/812770/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<swupdate+bncBAABBZEC37GQKGQEL5PA2JY@googlegroups.com>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:400c:c09::23c;\n\thelo=mail-wm0-x23c.google.com;\n\tenvelope-from=swupdate+bncbaabbzec37gqkgqel5pa2jy@googlegroups.com;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"giEXsJfe\"; dkim-atps=neutral" ], "Received": [ "from mail-wm0-x23c.google.com (mail-wm0-x23c.google.com\n\t[IPv6:2a00:1450:400c:c09::23c])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xs2Gy6YY0z9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 21:13:45 +1000 (AEST)", "by mail-wm0-x23c.google.com with SMTP id n64sf506252wma.12\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 04:13:45 -0700 (PDT)", "by 10.28.137.207 with SMTP id l198ls295117wmd.6.gmail; Tue, 12 Sep\n\t2017 04:13:40 -0700 (PDT)", "from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9])\n\tby gmr-mx.google.com with ESMTPS id\n\tt142si766785wmt.2.2017.09.12.04.13.40\n\tfor <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 04:13:40 -0700 (PDT)", "from frontend03.mail.m-online.net (unknown [192.168.6.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xs2Gr2W1Gz1qxxZ;\n\tTue, 12 Sep 2017 13:13:40 +0200 (CEST)", "from localhost (dynscan3.mnet-online.de [192.168.6.84])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xs2Gr2Bcbz1qsQG;\n\tTue, 12 Sep 2017 13:13:40 +0200 (CEST)", "from mail.mnet-online.de ([192.168.8.182])\n\tby localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id IsUjCwkiiP1x; Tue, 12 Sep 2017 13:13:39 +0200 (CEST)", "from babic.homelinux.org\n\t(host-88-217-136-221.customer.m-online.net [88.217.136.221])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPS;\n\tTue, 12 Sep 2017 13:13:39 +0200 (CEST)", "from localhost (mail.babic.homelinux.org [127.0.0.1])\n\tby babic.homelinux.org (Postfix) with ESMTP id 2E8D945405CE;\n\tTue, 12 Sep 2017 13:13:39 +0200 (CEST)", "from babic.homelinux.org ([127.0.0.1])\n\tby localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id zNkVG9P5jG36; Tue, 12 Sep 2017 13:13:36 +0200 (CEST)", "from papero.fritz.box (papero.fritz.box [192.168.178.132])\n\tby babic.homelinux.org (Postfix) with ESMTP id 8394D45405CD;\n\tTue, 12 Sep 2017 13:13:36 +0200 (CEST)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; t=1505214821; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=LGVIujKbH5a+DSjlLeDFg3S6f95bjVL+2uyFEzVI6wSCDBLz61KSJnroGjMH9Z3cqU\n\trSwMznvUX0s8h5kf/2/Zz2Q+alGe6xB7VEpJYE7TMUu6+FGKoToEaUvlrc5T1rnSw8G5\n\tNGhYQ9zRHqokI5Fzw47wP1WfDWKH0UzE3hxPt/Qw+IIol2/WAo9HGm3BjgnTxiYXFy3/\n\tOu1VK6OcSOFkS34KuJdeVNcQ0DS5b7EXMjzAiGSYRfkmKsU8oaI6qH3S5/xfP0b9Kq13\n\t+NbEoMVuFRp05DrAOg8QD3zMVZVPoGKX6BXDcVg9JwZEdkXVZOWJGqYQfhXh+l2wAuoC\n\tJlmg==", "i=1; a=rsa-sha256; t=1505214820; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=q9yfVP8zR2HZsjgBXbE5+FbpsG6Jggm+ZZna0GpA/VlVSG+bAyTMWhZrqjFRTsFrji\n\t1G+0O9saygpG3Rvi7uSBevOqT9kIrsqTyKc+KFUOJ0ErOntv0fbZEGM3oUVViLH/aHuB\n\tu3BXkim83O4WZZPUnrMHh/4kYoyNuxMP5Vvqr9hn0vepLP2iYoiObqNW2QipgXkFGGYK\n\tuVQE52MZloMLFvrrKFprFczma6Fps8RpMTVN08HriO5zj+VY+e9RHRwRqEbAumfpHxnB\n\thlgnh58VbrAa2iMhC++d81XoMOjRPUbkZPoSXvwhP1LwMRAisLaBaxYX9M0cXhX0lUiL\n\tGdDw==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:message-id:date:subject:cc:to:from\n\t:arc-authentication-results:arc-message-signature:mime-version\n\t:sender:dkim-signature:arc-authentication-results;\n\tbh=9Po6LB0AggwFjz3l0rblOc8hhOL502FyIQnpSgVEx10=;\n\tb=l6mHn7Pq4o8hJodTxPH3Ckp4TKi8ejUOvSxNS0r8BP18w3fL2opj4Ek4BHEK34Almn\n\t4nRaDBjmiYHHXYkle2OjDlfmCkhss4wiPbdfqlg2b9V5EcX3zajHu0pr/jDkgV3O20tg\n\tF21B0nXj/FudBmyELm8Z5H9cssdkphwW4FyxT1ZFVGZi0i5wLeXATJjQwid2RJMaMUs9\n\tmyYokTz1U/Uqi21onfl0lpw21FAmhT4wxeS5FsSQdnAlR9CHRTEffYc33HhhLo+lTs6r\n\t/FasPRv9i+4XtMPVUpd+huVu9GmidFABHEC+hImmt7uEdcLT1AVZtrTHd5YPMUH4SxcX\n\tS00w==", "i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=message-id:date:subject:cc:to:from:arc-authentication-results;\n\tbh=AhpNjn8pMYbUSc8z7g3fBg5sB76xJudu6SSCymOQCf8=;\n\tb=lwMDBrK6Pcq5WHHAppEvYBw3UFdFTkvAjVKRiGAlkInCQTgaRx4xQqk5kRyYAMNpWW\n\tmDEIEDVaog5mo/PSaWAonGlqUQSa/ug5we6v4xbxJt4SGzwgBkaKZs9qg5TJFZoUgnKi\n\tlWpD/NZeiUOBbKE3DsK2ZhGTYnsiQHn+KHAyB6N5wzuC0cw9Usb+VlCiXTJYOMkzP4eL\n\tHOYKxBB2gSCrnmYSNXlKLSmLw8o7cEWLCTlQIaflleHdtlZUrvlydAxReTfctxb+aq1u\n\tOSvjuI1NOOoOB6F4W6wQIyhGwtUQiQtVNJNj/fqAY0Juk94sJdE3keqTPWblEmv/tC1x\n\tDkuQ==" ], "ARC-Authentication-Results": [ "i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 212.18.0.9 is neither permitted nor denied\n\tby best guess record for domain of sbabic@denx.de)\n\tsmtp.mailfrom=sbabic@denx.de", "i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 212.18.0.9 is neither permitted nor denied\n\tby best guess record for domain of sbabic@denx.de)\n\tsmtp.mailfrom=sbabic@denx.de" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id\n\t:x-original-sender:x-original-authentication-results:precedence\n\t:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=9Po6LB0AggwFjz3l0rblOc8hhOL502FyIQnpSgVEx10=;\n\tb=giEXsJfeIxA/rNVUceW5fD+b+FyQtaADPUkStQHmLRXPHwDtf5HZ6RWxO2S8v0KZCG\n\tYOCZ/tBShmWdMMCR70ixHp1Mq0I2Q5AhDRIvrcP0NzCXLfa6p/3BiKwbY1oc+aHKnWVv\n\t55xo/Ua5iB4OX9vLyY2sXtvVoIau/GFhflx0lJ2nfx7OOyAIwSpaWNa85kBgosYlOQ18\n\tdQs67K+yFE1FzpB6NF5nSHW05kGqJIedHz3KP+ScgBxxvWdFxjKOmD0aOUxN9X7BMwlH\n\tyEnt/OWI+HlExV4pXfoCwKx8sEiNZHeQv4EWkgbwpeRdVhd6ahy4QVuoDfdL6ZEqW8iv\n\tB6yw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:x-spam-checked-in-group:list-post\n\t:list-help:list-archive:list-subscribe:list-unsubscribe;\n\tbh=9Po6LB0AggwFjz3l0rblOc8hhOL502FyIQnpSgVEx10=;\n\tb=WtfGd4srzBb10ju69uO1EYQLMuowLjPZj9+h034C5MWQujFcdMBh44l9rM9mOZuriu\n\tCm6J9CPsTkJZFoGLLbBhMPd1qMt9FU8Ub/obbCJkPAyOm2x0JyJElt/UwJBKb35nfjgu\n\twXjccAIULIlLZUV40fND9jMIZvnCz5Y8Hgt7nH534Da9qjFkcBVOYMlkS3cDC9RF6WF2\n\tHUkY71yMo1M7TdhYi/+xW8fP/JLiGfUaVqhYYzgcfxFg5SKnMUtfh3ifg02ED3SP9U0/\n\t9/rX/QH72I8ms+8P/mLl/pI3OAssnMcPOqjVBWrGowyvqgQ+MzZ0OIehJPBxJlXLwaDw\n\th9vw==", "Sender": "swupdate@googlegroups.com", "X-Gm-Message-State": "AHPjjUiWuMq8vh1xgJY8ROoH9lmHMeuidFHbBZHpnPs1X46zkZXK9Hvy\n\t7hnNbv9QZXIV0rs+mqDFVSI=", "X-Google-Smtp-Source": "AOwi7QAx0NWo2BmbzgDbjEq5W+m+BOh2oPjDqBhsDDNHjG7P4tsxF+iQ2xG+bNf/IcpI9oQDbj4z2w==", "X-Received": [ "by 10.28.128.19 with SMTP id b19mr25391wmd.7.1505214820928;\n\tTue, 12 Sep 2017 04:13:40 -0700 (PDT)", "by 10.223.134.175 with SMTP id 44mr838125wrx.11.1505214820598;\n\tTue, 12 Sep 2017 04:13:40 -0700 (PDT)" ], "MIME-Version": "1.0", "X-BeenThere": "swupdate@googlegroups.com", "Received-SPF": "neutral (google.com: 212.18.0.9 is neither permitted nor\n\tdenied by best guess record for domain of sbabic@denx.de)\n\tclient-ip=212.18.0.9; ", "X-Virus-Scanned": [ "amavisd-new at mnet-online.de", "Debian amavisd-new at babic.homelinux.org" ], "From": "Stefano Babic <sbabic@denx.de>", "To": "swupdate@googlegroups.com", "Cc": "Stefano Babic <sbabic@denx.de>,\n\tChristian Storm <christian.storm@siemens.com>", "Subject": "[swupdate] [PATCH] Fix usage of TMPDIR", "Date": "Tue, 12 Sep 2017 13:13:35 +0200", "Message-Id": "<1505214815-19857-1-git-send-email-sbabic@denx.de>", "X-Mailer": "git-send-email 2.7.4", "X-Original-Sender": "sbabic@denx.de", "X-Original-Authentication-Results": "gmr-mx.google.com; spf=neutral\n\t(google.com: 212.18.0.9 is neither permitted nor denied by best guess\n\trecord\n\tfor domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de", "Content-Type": "text/plain; charset=\"UTF-8\"", "Precedence": "list", "Mailing-list": "list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com", "List-ID": "<swupdate.googlegroups.com>", "X-Spam-Checked-In-Group": "swupdate@googlegroups.com", "X-Google-Group-Id": "605343134186", "List-Post": "<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>", "List-Help": "<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>", "List-Archive": "<https://groups.google.com/group/swupdate", "List-Subscribe": "<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>", "List-Unsubscribe": "<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>" }, "content": "Commit 7ce284c5401c64bcd54e469ce8a3f7639e28ed3a makes TMPDIR\nconfigurable. Fix the remaining sources that use the TMPDIR variable.\n\nSigned-off-by: Stefano Babic <sbabic@denx.de>\nCC: Christian Storm <christian.storm@siemens.com>\n---\n corelib/lua_interface.c | 1 +\n handlers/lua_scripthandler.c | 7 +++++--\n 2 files changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/corelib/lua_interface.c b/corelib/lua_interface.c\nindex 90c2230..5717807 100644\n--- a/corelib/lua_interface.c\n+++ b/corelib/lua_interface.c\n@@ -401,6 +401,7 @@ static int l_handler_wrapper(struct img_type *img, void *data) {\n \tlua_Number result;\n \tint l_func_ref;\n \tint fdout;\n+\tconst char* TMPDIR = get_tmpdir();\n \n \tif (!gL || !img || !data) {\n \t\treturn -1;\ndiff --git a/handlers/lua_scripthandler.c b/handlers/lua_scripthandler.c\nindex a3df317..1793878 100644\n--- a/handlers/lua_scripthandler.c\n+++ b/handlers/lua_scripthandler.c\n@@ -44,9 +44,11 @@ static int start_lua_script(struct img_type *img, void *data)\n \tint ret;\n \tconst char *fnname;\n \tconst char *output;\n-\tchar filename[64];\n \tscript_fn scriptfn;\n \tlua_State *L = luaL_newstate(); /* opens Lua */\n+\tconst char* TMPDIR = get_tmpdir();\n+\tchar filename[MAX_IMAGE_FNAME + strlen(TMPDIR) +\n+\t\tstrlen(SCRIPTS_DIR_SUFFIX) + 2];\n \n \tif (!data)\n \t\treturn -1;\n@@ -65,7 +67,8 @@ static int start_lua_script(struct img_type *img, void *data)\n \t\treturn 0;\n \t}\n \n-\tsnprintf(filename, sizeof(filename), \"%s%s\", TMPDIR, img->fname);\n+\tsnprintf(filename, sizeof(filename),\n+\t\t\"%s%s%s\", TMPDIR, SCRIPTS_DIR_SUFFIX, img->fname);\n \tTRACE(\"Calling Lua %s\", filename);\n \n \tluaL_openlibs(L); /* opens the standard libraries */\n", "prefixes": [] }