add copyright notice for sanitizer_data, minor changes

pull/13/head
Simon Let 6 years ago
parent 0d1c3ea1fc
commit 7849384151
  1. 3
      sanitize-history/resh-sanitize-history.go
  2. 7
      sanitizer_data/copyright_information.md
  3. 1
      sanitizer_data/whitelist.txt

@ -39,6 +39,7 @@ func main() {
showVersion := flag.Bool("version", false, "Show version and exit") showVersion := flag.Bool("version", false, "Show version and exit")
showRevision := flag.Bool("revision", false, "Show git revision and exit") showRevision := flag.Bool("revision", false, "Show git revision and exit")
trimHashes := flag.Int("trim-hashes", 12, "Trim hashes to N characters, '0' turns off trimming") trimHashes := flag.Int("trim-hashes", 12, "Trim hashes to N characters, '0' turns off trimming")
inputPath := flag.String("input", historyPath, "Input file")
outputPath := flag.String("output", "", "Output file (default: use stdout)") outputPath := flag.String("output", "", "Output file (default: use stdout)")
flag.Parse() flag.Parse()
@ -57,7 +58,7 @@ func main() {
log.Fatal("Sanitizer init() error:", err) log.Fatal("Sanitizer init() error:", err)
} }
inputFile, err := os.Open(historyPath) inputFile, err := os.Open(*inputPath)
if err != nil { if err != nil {
log.Fatal("Open() resh history file error:", err) log.Fatal("Open() resh history file error:", err)
} }

@ -0,0 +1,7 @@
# copyright information
Whitelist contains content from variety of sources.
Part of the whitelist (`./whitelist.txt`) is made of copyrighted content from [FileInfo.com](https://fileinfo.com/filetypes/common).
This content was used with permission from FileInfo.com.

@ -1013,6 +1013,7 @@ thm
tic tic
tif tif
tiff tiff
tig
time time
timedatectl timedatectl
timeout timeout

Loading…
Cancel
Save