FS#25170 - [dmenu] dmenu_path should not find binaries recursively or output socket files

Attached to Project: Community Packages
Opened by Jun Wu (quark) - Tuesday, 19 July 2011, 11:47 GMT
Last edited by Thomas Dziedzic (tomd123) - Tuesday, 19 July 2011, 13:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
dmenu_path should not find binaries recursively, and should not output socket files.

suggest to replace

[code]
if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then
find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
fi
[/code]

to

[code]
if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" -maxdepth 1 | grep -q .; then
find $PATH -type f -perm /u=x,g=x,o=x -maxdepth 1 > "$CACHE"
fi
[/code]

in /usr/bin/dmenu_path

Additional info:
dmenu 4.3.1-1
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Tuesday, 19 July 2011, 13:11 GMT
Reason for closing:  Upstream

Loading...