]> Sergey Matveev's repositories - glocate.git/blobdiff - dirsizer.go
Unify copyright comment format
[glocate.git] / dirsizer.go
index fda37f4fe46098cf687690e5e03984aba77f952ed5814359e94deefcccbbbdb3..ffc8f51ac7c796557f521c4293c4b250ec8d4c4fcbaaea98fe8f3884d375f0d7 100644 (file)
@@ -1,3 +1,18 @@
+// glocate -- ZFS-diff-friendly locate-like utility
+// Copyright (C) 2022-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 3 of the License.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 package main
 
 import (
@@ -48,7 +63,7 @@ func applyDirSizes(src *os.File, dirSizes []int64) *os.File {
        if err != nil {
                log.Fatalln(err)
        }
-       tmp, err := os.CreateTemp("", "glocate-idx")
+       tmp, err := os.CreateTemp(TmpDir, "glocate-idx")
        if err != nil {
                log.Fatalln(err)
        }