filed
Job queue using FUSE
git clone git://mccd.space/filedcommit 1fbbb1875bc27b42e8f4608e46991c8932469479
parent fb767d50d98d40324921113407f9394004cbfb28
Author: Marc Coquand <marc@coquand.email>
Date: Mon, 15 Dec 2025 10:34:06 +0100
*
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.go b/main.go
@@ -25,7 +25,8 @@ func usage() {
func main() {
userUid := uint32(os.Getuid())
if userUid == 0 {
- slog.Warn("Running qj as root is highly not recommended. Be careful")
+ warning := fmt.Sprintf("Running %s as root is highly not recommended. Be careful", os.Args[0])
+ slog.Warn(warning)
}
flag.Usage = usage