summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-06-08 22:04:08 +0000
committermidipix <writeonce@midipix.org>2024-06-08 22:04:08 +0000
commit063962394bfc533d2fbc6120c682d635cdd2c6a7 (patch)
tree35028106cde73eedee2e36e2bc8ed922fe812dd1
parent3ead65161272c24941f9e757786a36bc5c080f96 (diff)
downloadtpax-063962394bfc533d2fbc6120c682d635cdd2c6a7.tar.bz2
tpax-063962394bfc533d2fbc6120c682d635cdd2c6a7.tar.xz
driver: posix semantics: implement -H and -L as mutually-exclusive options.
-rw-r--r--src/driver/tpax_driver_ctx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c
index dccab98..e9425f6 100644
--- a/src/driver/tpax_driver_ctx.c
+++ b/src/driver/tpax_driver_ctx.c
@@ -88,7 +88,7 @@ static int tpax_driver_usage(
"Synopsis:\n"
" %s [-d] [-f archive]\n"
" %s -r [-d] [-f archive]\n"
- " %s -w [−x format] [-b blocksize] [-dtHL] [-f archive]\n"
+ " %s -w [−x format] [-b blocksize] [-dt] [-H|-L] [-f archive]\n"
" %s -r -w [-d]\n\n"
"Options:\n",
program,program,program,program,program);
@@ -532,6 +532,7 @@ int tpax_lib_get_driver_ctx(
case TAG_PAX_SYMLINK_ARGS:
cctx.drvflags |= TPAX_DRIVER_PAX_SYMLINK_ARGS;
+ cctx.drvflags &= ~(uint64_t)TPAX_DRIVER_PAX_SYMLINK_ITEMS;
break;
case TAG_PAX_SYMLINK_ITEMS: