Skip to contentSkip to conversation

subcmd: pass -m as first argument to install

PATCH New Haelwenn (lanodan) Monnier 1 participant 1 message Aug 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 subcmd: pass -m as first argument to install

Otherwise it gets parsed as a file when a non-GNU getopt(3) is used.

---
 tools/lib/subcmd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/subcmd/Makefile +1 -1
index b87213263..138bfdf05 100644
@@ -92,7 +92,7 @@ define do_install
 	if [ ! -d '$2' ]; then             \
 		$(INSTALL) -d -m 755 '$2'; \
 	fi;                                             \
-	$(INSTALL) $1 $(if $3,-m $3,) '$2'
+	$(INSTALL) $(if $3,-m $3,) $1 '$2'
 endef
 
 install_lib: $(LIBFILE)
Signature · 1 line
2.44.2