From nobody Sun Feb 8 10:48:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1577977160; cv=none; d=zohomail.com; s=zohoarc; b=J0VEHtbqNBjHpa9xhAkQJLTHiJ18qiHzaa6W8dHPlT/F2NvCGUGou4kj9Vhry2Q8qaWBNYDtXP7eaDSsaEoxGKBA20OckwJ7o/jQCL55+/R8JugOPnO00oglCqL33v4oWl782z4nsl2x1rlHOp41zwj/cqF0D5CBSnZQd3Mw5uw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577977160; 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=VDXmmMeSKBXHmq9tm8yawJdu8yFgV+3jViq5VRQ522Y=; b=M17+hIs9cE6/t8Z84HHb0p44tVdSB2g0M5dsHB+txw1ViIK6dktuRDXiogvlLLxc9dJvPs3fAVo6vgsy4CR2NZMZYWEQxX6hiqilddhiSbnD9+Ef0dbklkRJOAbivuFTuM8Xt2DGQW39tTy0BmM1WbNoiuQStBLaEe6hgimYN6U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1577977160693529.6816447248648; Thu, 2 Jan 2020 06:59:20 -0800 (PST) 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-387-vdGkj9oHPvGJPZgw-9N6Hw-1; Thu, 02 Jan 2020 09:56:56 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0B45018CA240; Thu, 2 Jan 2020 14:56:50 +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 D72F860FFB; Thu, 2 Jan 2020 14:56:49 +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 97ADF1804744; Thu, 2 Jan 2020 14:56:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 002EulGp004860 for ; Thu, 2 Jan 2020 09:56:47 -0500 Received: by smtp.corp.redhat.com (Postfix) id BA9DD6106F; Thu, 2 Jan 2020 14:56:47 +0000 (UTC) Received: from catbus.gsslab.fab.redhat.com (dhcp-43.gsslab.fab.redhat.com [10.33.9.43]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7BBA260FC1; Thu, 2 Jan 2020 14:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577977159; 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=VDXmmMeSKBXHmq9tm8yawJdu8yFgV+3jViq5VRQ522Y=; b=itYE2V+tCeUkeqLRZ6Wj4NZ6XJPmmpcXFIC91QTqiQb5hEWoeyQvdDd781u2h7EVFEOdEl r9LJB45gLoWqSSvD+NIFgVIKEhVS4mIdjO0GwfHyDRDlm830+1WQlfNjqIVdKwBHhcVauj XQX1/LC0f9WwYarG2+R1ApmcQAIAfjM= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 2 Jan 2020 14:53:48 +0000 Message-Id: <20200102145357.6724-15-berrange@redhat.com> In-Reply-To: <20200102145357.6724-1-berrange@redhat.com> References: <20200102145357.6724-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 14/23] util: replace IS_ABSOLUTE_FILE_NAME with g_path_is_absolute 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.12 X-MC-Unique: vdGkj9oHPvGJPZgw-9N6Hw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_domain.c | 6 ++---- src/util/virfile.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 187aaf5737..f545d0b888 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -77,8 +77,6 @@ # include #endif =20 -#include "dosname.h" - #define QEMU_QXL_VGAMEM_DEFAULT 16 * 1024 =20 #define VIR_FROM_THIS VIR_FROM_QEMU @@ -14340,7 +14338,7 @@ qemuDomainCreateDeviceRecursive(const char *device, * (want /dev/disk/by-id/../../sda) * /dev/stdout -> /proc/self/fd/1 (no change needed) */ - if (IS_RELATIVE_FILE_NAME(target)) { + if (!g_path_is_absolute(target)) { char *c =3D NULL, *tmp =3D NULL, *devTmp =3D NULL; =20 devTmp =3D g_strdup(device); @@ -15312,7 +15310,7 @@ qemuDomainAttachDeviceMknodRecursive(virQEMUDriverP= tr driver, return ret; } =20 - if (IS_RELATIVE_FILE_NAME(target)) { + if (!g_path_is_absolute(target)) { char *c =3D NULL, *tmp =3D NULL, *fileTmp =3D NULL; =20 fileTmp =3D g_strdup(file); diff --git a/src/util/virfile.c b/src/util/virfile.c index 97f86a46e9..1ce909b033 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -1562,7 +1562,7 @@ virFileResolveLinkHelper(const char *linkpath, /* We don't need the full canonicalization of intermediate * directories, if linkpath is absolute and the basename is * already a non-symlink. */ - if (IS_ABSOLUTE_FILE_NAME(linkpath) && !intermediatePaths) { + if (g_path_is_absolute(linkpath) && !intermediatePaths) { if (g_lstat(linkpath, &st) < 0) return -1; =20 @@ -1640,7 +1640,7 @@ virFindFileInPath(const char *file) /* if we are passed an absolute path (starting with /), return a * copy of that path, after validating that it is executable */ - if (IS_ABSOLUTE_FILE_NAME(file)) { + if (g_path_is_absolute(file)) { if (!virFileIsExecutable(file)) return NULL; =20 --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list