GNU bug report logs - #8186
dired-font-lock-keywords should warn about SUID files too!

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 6 Mar 2011 09:29:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 8186 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Juri Linkov <juri <at> linkov.net>
Cc: 8186 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: RE: bug#8186: dired-font-lock-keywords should warn about SUID files
 too!
Date: Mon, 28 Oct 2019 07:23:01 -0700 (PDT)
> > I checked the directory /run and there is:
> >   drwxrwsr-x  3 postgres postgres   120 postgresql
> > where 'w' in group is rightfully highlighted with the 'dired-perm-write' face,
> > but 's' in the same group is not highlighted with the 'dired-set-id' face.
> > Is this intentional?
> 
> No...  Do we need to add combinatorial versions of all the regexps to
> dired-font-lock-keywords or is there a better way?

FWIW -

If by that you mean highlight the different privileges
for each possible role (other, group, user), then
`dired+.el' has done that since sometime in the 90s.
(I suggested it for Emacs back then.)

Not a big deal:

(list (concat dired-re-maybe-mark dired-re-inode-size
              "[-dl]........\\([lsStT]\\)")  ; o misc
      '(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
              "[-dl].....\\([lsStT]\\)...")  ; g misc
      '(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
              "[-dl]..\\([lsStT]\\)...")     ; u misc
      '(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
              "\\([bcsmpS]\\)")              ; (rare)
      '(1 diredp-rare-priv keep))

https://www.emacswiki.org/emacs/download/dired%2b.el




This bug report was last modified 5 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.