[Bug 269025] fortune doesn't honor hushlogin

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 18 Jan 2023 09:02:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269025

            Bug ID: 269025
           Summary: fortune doesn't honor hushlogin
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: as@tenoware.com

Hi,

fortune(6) is executed from .profile or .login; however it doesn't seem to
honor .hushlogin file

in other words if I touch ~/.hushlogin I would expect fortune not to be ran on
login

I think a condition should be added to .profile && .login to skip fortune if
~/.hushlogin exists

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.