From 784938415109cd1fe4e0e6b8e669365060f9f9fb Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sun, 8 Sep 2019 01:06:45 +0200 Subject: [PATCH] add copyright notice for sanitizer_data, minor changes --- sanitize-history/resh-sanitize-history.go | 3 ++- sanitizer_data/copyright_information.md | 7 +++++++ sanitizer_data/whitelist.txt | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sanitizer_data/copyright_information.md diff --git a/sanitize-history/resh-sanitize-history.go b/sanitize-history/resh-sanitize-history.go index 3d4c646..03926b1 100644 --- a/sanitize-history/resh-sanitize-history.go +++ b/sanitize-history/resh-sanitize-history.go @@ -39,6 +39,7 @@ func main() { showVersion := flag.Bool("version", false, "Show version 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") + inputPath := flag.String("input", historyPath, "Input file") outputPath := flag.String("output", "", "Output file (default: use stdout)") flag.Parse() @@ -57,7 +58,7 @@ func main() { log.Fatal("Sanitizer init() error:", err) } - inputFile, err := os.Open(historyPath) + inputFile, err := os.Open(*inputPath) if err != nil { log.Fatal("Open() resh history file error:", err) } diff --git a/sanitizer_data/copyright_information.md b/sanitizer_data/copyright_information.md new file mode 100644 index 0000000..a1b1308 --- /dev/null +++ b/sanitizer_data/copyright_information.md @@ -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. \ No newline at end of file diff --git a/sanitizer_data/whitelist.txt b/sanitizer_data/whitelist.txt index 87502b0..180e9c3 100644 --- a/sanitizer_data/whitelist.txt +++ b/sanitizer_data/whitelist.txt @@ -1013,6 +1013,7 @@ thm tic tif tiff +tig time timedatectl timeout