Bugzilla – Attachment 798386 Details for
Bug 1127138
YaST runs programs with wrong absolute path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
check-program-paths
check-program-paths (text/plain), 895 bytes, created by
Martin Vidner
on 2019-02-28 09:04:19 UTC
(
hide
)
Description:
check-program-paths
Filename:
MIME Type:
Creator:
Martin Vidner
Created:
2019-02-28 09:04:19 UTC
Size:
895 bytes
patch
obsolete
>#!/usr/bin/env ruby ># https://trello.com/c/plarcsbX/770-1-sle15-sp1-no-mkdir-is-not-in-usr-sbin > ># Find where we call programs that do not exist. ># Run this in a complete checkout ># and visually filter out the programs that do exist but are not installed now. > >require "cheetah" > ># uses "rg", ripgrep.rpm, a fast grepper >out, _err, _status = Cheetah.run "rg", > "--debug", > "--no-heading", > "--only-matching", > "--line-number", > '"/[^"<> ]+', > ".", > stderr: :capture, > stdout: :capture, > allowed_exitstatus: 0..255 >out.lines.each do |l| > /([^:]+):(\d+):(.*)/.match(l) do |m| > _, filename, line, s = *m > s = s[1..-1] # strip the leading '"' > next unless s.include? "bin/" > next if File.exist? s > puts "#{filename}:#{line} #{s.inspect}" > end >end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 1127138
: 798386