From nobody Mon Feb 9 13:38:31 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f8m474G2gz6RSTS for ; Mon, 09 Feb 2026 13:38:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f8m473bl3z3nW3 for ; Mon, 09 Feb 2026 13:38:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770644311; h=from:from: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; bh=uwY5N5+IYTtHesyl91RYOMRnpcRGn6bs+uLVecFHalI=; b=bsfOHlpNm28Ah6Uig87t9D3K9mVQ2B+IYem/wwdpfc5oPUS0A+ob8LG77sWOpnQ11Omr7K iqaz0yj1XXseapC8Jl4MwxCSGV1MsZM+c3Hyyz72wzDbeNlGHArelPWWKTb9eG00ahr3Cc 9Ob/hp3YsOnjUIzUWWlbTRBLdbTm1cMF001ep2HUNwTKkPG2vaTMrl3Yq4I+IrrF9aMkB/ vpecIRfMV+mv5MXda27t8vsVdNYtjon6ckGl4a/WgcF24fQd+cfITHkOUCMK4bAHWQZN8p JUQQGg1l7FCR6MznNnj87LUe+PZZE5fwJA9gTJ4cQhLP4XywqA2VsTvi3+AwJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770644311; a=rsa-sha256; cv=none; b=CjC8AjrpzMRPdE4fGdH9KvcQ67pfJ4g6EbWou/sT5yBTC8sIh/AyLHYj1ONE4XFfUfVXpr UXUb8HQ6iQO/F/Rtku+gU2t6kPVNCdjVWQyCqJ+fw92clF8q+ahLuyGSxELtmFT9DlS5M4 OOLgAvs+TMkEaY/2zYJKYMEWvKQN5ImvlX11i5WIaeKA9Yka+PUCsKZHkn7xU3tbTEoK6h W3xE34IMTBSWNfP+oLIJtTIfKHalz1bjKC1kNfBRCI4MlJtpy1rgwXWmXIR1ONE/i7Xchq N2I22U8B7ZoXTOMsk/ezYcUw5By8/e42RYYVPVjZwMOW+/aK56+mrKv8jaXPVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770644311; h=from:from: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; bh=uwY5N5+IYTtHesyl91RYOMRnpcRGn6bs+uLVecFHalI=; b=hcbhL8qNTlzV8IUyEFBVK/YJrnnpy/3sFTJJmGwpGHsacdbOYpeNgB/f9ElV4lyXj+7HTS fGHBSAD5IGhZxGsbNhJN8LMak3j3/QWvYB+dJzsov78CJwgxOiiJgHyn3ecSyK47Zeicms kvV0cq2jwuxAqqvPyhvu8wWXR6dvisnOmjEPsULnFtaTmGO3yZqsMB1aP675AyJoeU+8Vh lEXY1wMkpn+WLJUMHi8D+NrC0cE4PFHkuOem2zVWLhu2Ddp6F9lzwwVzARJK1lObXVqasE OiFgnjZZzS9btoYQ5rrFV+YXC0c1tmxR7Yvgg3fM6VwwZymcWLOJCsOlTRCQRg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4f8m472f5tzbjp for ; Mon, 09 Feb 2026 13:38:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 619DcVw5049787 for ; Mon, 9 Feb 2026 13:38:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 619DcVhW049786 for bugs@FreeBSD.org; Mon, 9 Feb 2026 13:38:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293060] _PATH_RLOGIN is outdated Date: Mon, 09 Feb 2026 13:38:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cross@gajendra.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293060 Bug ID: 293060 Summary: _PATH_RLOGIN is outdated Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: cross@gajendra.net By way of context, for those that may not remember, the Berkeley "r" comman= ds (rlogin/rsh/rcp) were early networking utilities that allowed users to login into, execute commands on, and copy files to and from, remote machines. Th= ey used per-user and per-host configuration files to determine whether access = was permitted or not, and relied on the client being able to access privileged ("reserved") TCP ports to prevent spoofing (see `rcmd(3)`). As such, they = were not particularly secure, and once SSH became available and ubiquitous, quic= kly fell out of favor. They were removed from the FreeBSD base distribution ma= ny years ago. However, for connecting to old systems on closed networks, they can be handy (at least, the clients, if not the servers), and so there is a package for = them in ports. Unfortunately, that package relies on symbols from (`_PATH_RLOGIN= `, specifically) that is still refers to their old pathnames from the 4.4BSD d= ays. The `rsh` ("remote shell") program, for example, is intended for executing commands on a remote system, but invoked with no command specified, it will instead exec "rlogin" locally, allowing one to login to a remote host by typing, "rsh host". But this fails since the package attempts to `argv[0] = =3D "rlogin"; execv(_PATH_RLOGIN, argv);`. This is easy enough to work around in the port (https://github.com/jlehen/bsdrcmds/pull/2), but that symbol, along with _PATH_RSH and _PATH_RCP, should probably be removed from the base system. I would argue that the `rcmd` et al library functions should probably also be removed, or at least moved out of libc and into a compatibility library (possibly provided by the port) if not. --=20 You are receiving this mail because: You are the assignee for the bug.=