Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2026 18:44:37 +0000
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0b418dea7182 - stable/14 - ctld: Permit valid integer LUN device types
Message-ID:  <69790795.2055c.79203868@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b418dea7182f168bb881633a2dc40a9f244a297

commit 0b418dea7182f168bb881633a2dc40a9f244a297
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-08-04 19:38:06 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-27 18:15:58 +0000

    ctld: Permit valid integer LUN device types
    
    Fixes:          2e0caa7c7e14 ("libutil: Really fix expand_number(3)")
    Sponsored by:   Chelsio Communications
    (cherry picked from commit 14f2cd78042372d27138a91dcb4f4845fe2e8194)
---
 usr.sbin/ctld/conf.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/ctld/conf.cc b/usr.sbin/ctld/conf.cc
index f3285ebf9d56..a8da88056d93 100644
--- a/usr.sbin/ctld/conf.cc
+++ b/usr.sbin/ctld/conf.cc
@@ -427,8 +427,8 @@ lun_set_device_type(const char *value)
 		if (errstr != NULL) {
 			log_warnx("invalid device-type \"%s\" for lun \"%s\"", value,
 			    lun->l_name);
+			return (false);
 		}
-		return (false);
 	}
 
 	lun->l_device_type = device_type;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69790795.2055c.79203868>