From 1c3761bb53c95d75751f95e8f77d9d1e5928b968 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 14:48:27 +0900 Subject: container: enter init path early There is generally no use case where any setup is required before init, and requiring the explicit function call is error-prone and unnecessary. It also causes trouble with packages using a similar trick. This change moves argv0 check early and makes it an import side effect. The stub will be removed in v0.5. Signed-off-by: Ophestra --- cmd/sharefs/fuse.go | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd/sharefs/fuse.go') diff --git a/cmd/sharefs/fuse.go b/cmd/sharefs/fuse.go index 5dfbf385..458e1919 100644 --- a/cmd/sharefs/fuse.go +++ b/cmd/sharefs/fuse.go @@ -287,7 +287,6 @@ func unsafeAddArgument(args *fuseArgs, arg string) { func _main(s ...string) (exitCode int) { msg := message.New(log.Default()) - container.TryArgv0(msg) runtime.LockOSThread() // don't mask creation mode, kernel already did that -- cgit v1.3.1