Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 1996 23:55:50 -0700 (PDT)
From:      graphix@iastate.edu
To:        freebsd-gnats-submit@freebsd.org
Subject:   bin/1700: 'ls -lo' does not list opaque flag (chflags does not allow a user to change this flag)
Message-ID:  <199610010655.XAA01674@freefall.freebsd.org>
Resent-Message-ID: <199610010720.AAA02908@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1700
>Category:       bin
>Synopsis:       'ls -lo' does not list opaque flag (chflags does not allow a user to change this flag)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  1 00:20:01 PDT 1996
>Last-Modified:
>Originator:     Kent Vander Velden
>Organization:
Iowa State University
>Release:        -current
>Environment:
FreeBSD pseudo.cc.iastate.edu 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Sun Sep 22 00:08:01 CDT 1996     root@pseudo.cc.iastate.edu:/usr/src/sys/compile/PSEUDO  i386

>Description:
I am not competely certain if this is a problem but 'ls -lo' does not
list the state of the opaque flag on files.  Our chflags also does not
allow a person to set this flag.  Our include file sys/stat.h makes
a refernce to it implying perhaps that ls and chflags should know about 
it.
>How-To-Repeat:


>Fix:
This patch (from comparing NetBSD's) to src/bin/ls/stat_flags.c 
should fix ls and chflags.  The man pages to these two programs 
will need to have a line added as well though.

src|Tue1:44am} cvs diff -r HEAD bin/ls/stat_flags.c
Index: bin/ls/stat_flags.c
===================================================================
RCS file: /usr/FreeBSD-CVS/src/bin/ls/stat_flags.c,v
retrieving revision 1.2
diff -r1.2 stat_flags.c
73a74,75
>       if (flags & UF_OPAQUE)
>               SAPPEND("opaque");
129a132,134
>                       return (1);
>               case 'o':
>                       TEST(p, "opaque", UF_OPAQUE);

>Audit-Trail:
>Unformatted:



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