all: imp code, log changes

This commit is contained in:
Eugene Burkov 2024-11-20 16:37:30 +03:00
parent 368598819f
commit 2e096c0e32
3 changed files with 25 additions and 16 deletions
internal/home

View file

@ -79,9 +79,9 @@ type options struct {
// rather than the ones that have been compiled into the binary.
localFrontend bool
// checkPermissions enables the migration of permissions for the
// security-sensitive files, including the working directory itself.
checkPermissions bool
// noPermCheck disables checking and migration of permissions for the
// security-sensitive files.
noPermCheck bool
}
// initCmdLineOpts completes initialization of the global command-line option
@ -311,11 +311,11 @@ var cmdLineOpts = []cmdLineOpt{{
shortName: "",
}, {
updateWithValue: nil,
updateNoValue: func(o options) (options, error) { o.checkPermissions = true; return o, nil },
updateNoValue: func(o options) (options, error) { o.noPermCheck = true; return o, nil },
effect: nil,
serialize: func(o options) (val string, ok bool) { return "", o.checkPermissions },
serialize: func(o options) (val string, ok bool) { return "", o.noPermCheck },
description: "Check and migrate permissions of security-sensitive files.",
longName: "permcheck",
longName: "no-permcheck",
shortName: "",
}, {
updateWithValue: nil,