Message ID | 20170907122454.24183-3-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBDD6BWV65QPBBOPWYTGQKGQEBXJK6VQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4010:c07::23e; helo=mail-lf0-x23e.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbopwytgqkgqebxjk6vq@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="PhiDUT9y"; dkim-atps=neutral Received: from mail-lf0-x23e.google.com (mail-lf0-x23e.google.com [IPv6:2a00:1450:4010:c07::23e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xp08Y39GKz9s7C for <incoming@patchwork.ozlabs.org>; Thu, 7 Sep 2017 22:27:40 +1000 (AEST) Received: by mail-lf0-x23e.google.com with SMTP id c82sf729163lfc.13 for <incoming@patchwork.ozlabs.org>; Thu, 07 Sep 2017 05:27:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1504787257; cv=pass; d=google.com; s=arc-20160816; b=fgNOG/HrCfDCB/kpfSbrzHGgJovAMU/f2OD9bnkfLR2w62W8ERtm5wye7F4sokro2r ncNuKvFn0lpHKAi1Fgjw/I0IJq4dazv/p2ehkxvIKsvrEMm605oixbdRUyh5yCPudP6S i2yZm5xnMZOs9ozL7o2RHA2mhBTkYjdrP+85ZfJlz4u6HmnOhQWDarSx8xAYJguxekEu vk0xrEIcgrho/lTXidA0XjLYDjFPTImzuqg8nNjbI2bTwBChNnXKiS7Vo5cD6Yc2ymQR aHjzGTW7Q15zXzzhsL5yF97ICoECtcK+F6ZtrWfkRmbgTS2h4BoG5mFcDQqQ31XPuOKO tfzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results :arc-message-signature:mime-version:sender:dkim-signature :arc-authentication-results; bh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=; b=nC564e2RNZfgVqTQ8KEcAmZot9v5KJYcPAzhjBNJ7acxoMRq90o9LzEp7soUJWkXy7 AyCvQj2yrEp7drfMBykkGWz5/jNoVbShELAMrVdrTnDU4yd4ZVZCCEH6liQOax7HPgEt jDP4BfGZsPWxxFDun5FeO/lhgrRkJgavEh8mz2qUbzdCBZJ/CiQ8NimK9OBzXNwJsgyd DItjasjf9a0Rvd0E/iaOE8tdJX2hOOALf/GwGZr442FJb8qTfKAUiuwOP0l8yg+Qfk3T 5Q8eHFz3LvawwFKtp+0q6eTGn3rpu5toPYN5KcTev5CcKh/I5aObx3U1+w8bDa/5yq9n 1Rtw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=; b=PhiDUT9yJxiHhkuqL7eY5o61TWQsnL5Wh6k64D6TMt8IfNVAj0QP4brS5XZtb2Fsq0 wckf/GP4TqjZSYIyIZil7oW8t9cQvAAnhEcmiGJKUHctrmU8jWUQ6lrzNsTy8hFYSLFS k7RNy2Q/KvmBpiyVXU4CU1fQkV/FCmUurhObkvNMdzkGRPZOsI+K9yxytrRYuPXds+ls b/e+m+2fDlUF/O1hwRFSSwCVROfG5NJO1Gs6GyI47lIMjsLRxcOBCITG3lgCdDd/jkHz uC02ConBoe6Bos2a21i0UqhI1zpd547xoX2wInKnkFQCP4P3WeuUCfmSU795icZj4tM4 CAqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=; b=MNHvVH2LE8gij2XWoSWxvl2YsderhrpInihQpCUJ+RXI7Adj84lkeprLw2SuhP5VVf +y+jV/7+2kvJ/KUOtZzeK/KWCcaB1vj56I3qtpjjRgI+AAT7/VNBxo89p0ongZx5uV7R 2fWfLvj0gBHSY9U/SXgJnsFFPKTZDMaGlc4ISbyhsV99bEFxXED3ah3eLOOVVLeVbsRr cuk9wk0IetZOinBL+Et2NA31DOJKLtyobLrmqDLqb+4llDYgKWpxvxGElhXFxoDMGKMX 6eXFHrPJaE1ncAQMYcMimTbbBRGvdLadcfb6IK/1zxlUWT/3xwQBy1eWROR9l8MzM3Jz 8cOw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AHPjjUg0jxmOuVieJROvhe9rnUkW9xYV0UOGUvBKFiCJWEReUWR2S46m vWSrExEVIwzu1w== X-Google-Smtp-Source: AOwi7QCAtKhsnonLpdtznCOH/kUeU28gLe2Evmu2njK5Ny8bofTgRNJtGRpcRos5sTgFPaqCyD0LYg== X-Received: by 10.25.80.67 with SMTP id z3mr3625lfj.18.1504787257732; Thu, 07 Sep 2017 05:27:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.25.198.16 with SMTP id w16ls42200lff.24.gmail; Thu, 07 Sep 2017 05:27:37 -0700 (PDT) X-Received: by 10.46.82.12 with SMTP id g12mr204385ljb.24.1504787257291; Thu, 07 Sep 2017 05:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504787257; cv=none; d=google.com; s=arc-20160816; b=zb76FaVk4zgo6t2o+Mxzl/ETGithtcXz11aF7pj8+qXTR9IohQFSJl/pg2iXmaO1o6 dA9YNacR6G8UvkciVwlf5cRtdzxuEvCROKGGQ232F+5Q+JmNfTB7XOqw++gtVBiq0kwh kmUER5n31K6uC3el/2cV8dWpUh7C/rNN2/bJKroeV6eblOg/KocMBF/6G2RrhBfrZ//X 0Dz+QhHajSlbpgtNiFcP+k04v4+qeSJEiXhuCuSWqRrz8qs6hodk1D+Y7r9f2n7PZ0xI 9tNL8Aq2h3vxmewu+KwlEgGw661f5AfkD1uE0FZe3s/rMg4QXxcsVpgTXwiuAy7pvzi8 p1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=M7iKH3KikGRr+K51Nrig5JFsJXBhEhj4/ZCcXuuGIjI=; b=Qp0B3TTL2ONSZxHAIEh4kiibd6G/K5cK53HZIFtBKQs8Sy+tj2vK7CD8w8u6lWquP3 OnzzkvTlqHkBuVmpNFjvT5xiyEeLMcP2OxH+nS57ezuXldyJselsUSTWdXFk60fNmm7p XSlC1Sz2n6dKoJzWSQSb6d4edbVPqbLqWdEpW+nl9AYRRIDms1q6G+hOYp5rpluv27ge zL6aKCfQVGUpt8UFTvyC0HDKVqjnoF10OqPHggWFfouoqQJLRX1Q42K7jD4ZEkz4LBYZ mB4NFKdKKqNqTq8embXmYuUHJ5NJMd9aRshCW1ASlDbd06Kav6T/f9AbDLJGxPbEfCC0 5ysQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id a20si17691wma.7.2017.09.07.05.27.37 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2017 05:27:37 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) client-ip=192.35.17.14; Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id v87CRaFA000897 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <swupdate@googlegroups.com>; Thu, 7 Sep 2017 14:27:36 +0200 Received: from MD1KR9XC.ad001.siemens.net ([139.25.69.251]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id v87CRau9019931; Thu, 7 Sep 2017 14:27:36 +0200 From: Christian Storm <christian.storm@siemens.com> To: swupdate@googlegroups.com Cc: Christian Storm <christian.storm@siemens.com> Subject: [swupdate] [PATCH v2 3/6] socket split: adapt remote handler Date: Thu, 7 Sep 2017 14:24:51 +0200 Message-Id: <20170907122454.24183-3-christian.storm@siemens.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170907122454.24183-1-christian.storm@siemens.com> References: <20170907122454.24183-1-christian.storm@siemens.com> X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact 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>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
None
|
expand
|
diff --git a/handlers/remote_handler.c b/handlers/remote_handler.c index 663a451..59661c0 100644 --- a/handlers/remote_handler.c +++ b/handlers/remote_handler.c @@ -167,7 +167,7 @@ static int install_remote_image(struct img_type *img, struct RHmsg RHmessage; char bufcmd[80]; - len = strlen(img->type_data) + strlen(TMPDIR) + strlen("ipc://") + 4; + len = strlen(img->type_data) + strlen(CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY) + strlen("ipc://") + 4; /* * Allocate maximum string @@ -177,7 +177,7 @@ static int install_remote_image(struct img_type *img, ERROR("Not enough memory"); return -ENOMEM; } - snprintf(connect_string, len, "ipc://%s%s", TMPDIR, + snprintf(connect_string, len, "ipc://%s%s", CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY, img->type_data); ret = zmq_connect(request, connect_string);
Make the solely internally used handlers/remote_handler.c use the kconfig setting for SOCKET_REMOTE_HANDLER_DIRECTORY. As TMPDIR is hard-coded to /tmp, this change maintains backwards compatibility. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- handlers/remote_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)