[Bug 275369] the ls command does not work correctly

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 27 Nov 2023 07:41:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275369

            Bug ID: 275369
           Summary: the ls command does not work correctly
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wildzander@gmail.com

Regards.

System: FreeBSD-14.0-RELEASE-amd64.
The ls command works correctly if I am logged in as root. If I am logged in as
a regular user, the ls command does not work properly.

Logged in as root:
------------------------------------------------------------------
/bin/sh
root@fbsd:~ # pwd
/root
root@fbsd:~ # ls
.cache          .cshrc          .local          .profile
.config         .k5login        .login          .sh_history
root@fbsd:~ # ls -l
total 25
drwx------ 3 root wheel    3 25 lis 20:05 .cache
drwx------ 3 root wheel    3 25 lis 20:05 .config
-rw-r--r-- 2 root wheel 1011 10 lis 09:11 .cshrc
-rw-r--r-- 1 root wheel   66 10 lis 09:49 .k5login
drwx------ 3 root wheel    3 25 lis 20:05 .local
-rw-r--r-- 1 root wheel  316 10 lis 09:11 .login
-rw-r--r-- 2 root wheel  495 10 lis 09:11 .profile
-rw------- 1 root wheel 1083 26 lis 10:17 .sh_history
-rw-r--r-- 1 root wheel 1191 25 lis 20:06 .shrc
root@fbsd:~ #
__________________________________________________________________
Logged in as a user:
------------------------------------------------------------------
test@fbsd:~ $ echo $SHELL
/bin/sh
test@fbsd:~ $ pwd
/home/test
test@fbsd:~ $ ls
test@fbsd:~ $ ls -l
total 0
test@fbsd:~ $
__________________________________________________________________

Am I doing something wrong, or is this a bug?

Thank you.

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