From d7dacaa62264673eff1a4a21da24af93630c4f36 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 6 Nov 2022 22:38:51 +0000 Subject: driver: chmod: renamed option --refmode to --refobj. --- include/ntux/ntux.h | 2 +- src/driver/ntux_driver_ctx.c | 4 ++-- src/internal/ntux_driver_impl.h | 2 +- src/skin/ntux_skin_chmod.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/ntux/ntux.h b/include/ntux/ntux.h index c29ffa7..1a6cdea 100644 --- a/include/ntux/ntux.h +++ b/include/ntux/ntux.h @@ -114,7 +114,7 @@ struct ntux_common_ctx { char ** senvp; const char * loader; const char * logfile; - const char * refmode; + const char * refobj; const char * strmode; const char * owner; const char * group; diff --git a/src/driver/ntux_driver_ctx.c b/src/driver/ntux_driver_ctx.c index 09d2142..e0f381d 100644 --- a/src/driver/ntux_driver_ctx.c +++ b/src/driver/ntux_driver_ctx.c @@ -246,8 +246,8 @@ static int ntux_cctx_update( cctx->logfile = entry->arg; break; - case TAG_REFMODE: - cctx->refmode = entry->arg; + case TAG_REFOBJ: + cctx->refobj = entry->arg; break; case TAG_STRMODE: diff --git a/src/internal/ntux_driver_impl.h b/src/internal/ntux_driver_impl.h index c3c109c..8b2be85 100644 --- a/src/internal/ntux_driver_impl.h +++ b/src/internal/ntux_driver_impl.h @@ -39,7 +39,7 @@ enum app_tags { TAG_SILENT, TAG_RECURSIVE, TAG_STRMODE, - TAG_REFMODE, + TAG_REFOBJ, TAG_CHANGES, TAG_OWNER, TAG_GROUP, diff --git a/src/skin/ntux_skin_chmod.c b/src/skin/ntux_skin_chmod.c index ce9ffad..798ad47 100644 --- a/src/skin/ntux_skin_chmod.c +++ b/src/skin/ntux_skin_chmod.c @@ -20,11 +20,11 @@ const struct argv_option ntux_chmod_options[] = { {"strmode", 's',TAG_STRMODE,ARGV_OPTARG_REQUIRED,0,0,"", "set mode based on the symbolic mode %s"}, - {"refmode", 'e',TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,"", + {"refobj", 'e',TAG_REFOBJ,ARGV_OPTARG_REQUIRED,0,0,"", "set mode based on the reference file %s"}, - {"reference", 0,TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,0, - "a synonym for --refmode"}, + {"reference", 0,TAG_REFOBJ,ARGV_OPTARG_REQUIRED,0,0,0, + "a synonym for --refobj"}, {"changes", 'c',TAG_CHANGES,ARGV_OPTARG_NONE,0,0,0, "print a list of changed ACEs"}, -- cgit v1.2.3