From nobody Sun Feb 8 16:53:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571752986; cv=none; d=zoho.com; s=zohoarc; b=dY4FwcU0iexCrzbdwqXLj4xBJ0zrhro7sSHYDojp7eSC5U8UysX2Y7ENt0RvmkItIbFeJTEG94BCKr2KTqHcYCA1Jllw1kUDBOPIzzoG4PBguA01znpuYFsPNTUFfzBfurBevsQxu3UHM/2ka051ZyjXbyW6CZMNHLHRkPei0QM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571752986; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HyOB7MyiuYWt7T8W80NuWhYvpTNZBiFP30r69tX/nN8=; b=h8a8UwBEyko3FZuqcaIfjemQB92XWQlL+yQdoelzI7Um3YzhK4Yl7EkeOdJzY8D8UfeuyZrws7IUTWotX/1rF9eHxa6xcUw9e/BTmhazmkwIVIGSKfiTkBOBOIn0ddoF2Xa29qGzIEWdQEYLnOO/D8k82SEKTfLrlbe3psG1s70= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1571752986571515.7610077375068; Tue, 22 Oct 2019 07:03:06 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-149-9PDy_hXgOWOOcSbClrZHwA-1; Tue, 22 Oct 2019 10:01:29 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D874C1005532; Tue, 22 Oct 2019 14:01:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9DDE65DC18; Tue, 22 Oct 2019 14:01:23 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2CE94180BA9A; Tue, 22 Oct 2019 14:01:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9ME0qp6002769 for ; Tue, 22 Oct 2019 10:00:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 86D346012E; Tue, 22 Oct 2019 14:00:52 +0000 (UTC) Received: from moe.redhat.com (unknown [10.43.2.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0E3E160BDF for ; Tue, 22 Oct 2019 14:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571752985; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HyOB7MyiuYWt7T8W80NuWhYvpTNZBiFP30r69tX/nN8=; b=WD15xoTFTsahF/oT97a32twL8Ep251F/m9xDuncqK06cIvknHu94OUx5cgVpp2ByO4rX1R EYHvPD6vGwRvytwe7cBEHGQcks7ZCU9EO/OhrT8BQMcwC6cLuJpuYs6mOeaHqkOLA6QUUl BCqy2pWvj5qFVNBUFWiPDYYZqtKRGj0= From: Michal Privoznik To: libvir-list@redhat.com Date: Tue, 22 Oct 2019 15:58:00 +0200 Message-Id: <7ad2cebd5114b2ae954908cee642a93f50f820b4.1571752582.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 56/75] secret: Use g_strdup_printf() instead of virAsprintf() X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: 9PDy_hXgOWOOcSbClrZHwA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Michal Privoznik --- src/secret/secret_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c index 064a02dfdd..5a5c84412a 100644 --- a/src/secret/secret_driver.c +++ b/src/secret/secret_driver.c @@ -469,19 +469,19 @@ secretStateInitialize(bool privileged, driver->privileged =3D privileged; =20 if (privileged) { - virAsprintf(&driver->configDir, "%s/libvirt/secrets", SYSCONFDIR); - virAsprintf(&driver->stateDir, "%s/libvirt/secrets", RUNSTATEDIR); + driver->configDir =3D g_strdup_printf("%s/libvirt/secrets", SYSCON= FDIR); + driver->stateDir =3D g_strdup_printf("%s/libvirt/secrets", RUNSTAT= EDIR); } else { g_autofree char *rundir =3D NULL; g_autofree char *cfgdir =3D NULL; =20 if (!(cfgdir =3D virGetUserConfigDirectory())) goto error; - virAsprintf(&driver->configDir, "%s/secrets/", cfgdir); + driver->configDir =3D g_strdup_printf("%s/secrets/", cfgdir); =20 if (!(rundir =3D virGetUserRuntimeDirectory())) goto error; - virAsprintf(&driver->stateDir, "%s/secrets/run", rundir); + driver->stateDir =3D g_strdup_printf("%s/secrets/run", rundir); } =20 if (virFileMakePathWithMode(driver->configDir, S_IRWXU) < 0) { --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list