From a1d00de1408b36b6b68d18d1c1e1fba7df1add49 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 2 Nov 2020 16:56:35 +0300 Subject: Set executable bit for ad hoc buildscript rule executable target on POSIX --- libbuild2/dist/operation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/dist/operation.cxx') diff --git a/libbuild2/dist/operation.cxx b/libbuild2/dist/operation.cxx index 21d5283..2fa953d 100644 --- a/libbuild2/dist/operation.cxx +++ b/libbuild2/dist/operation.cxx @@ -649,7 +649,7 @@ namespace build2 // args.push_back ("-m"); args.push_back ( - (path_permissions (t.path ()) & permissions::xu) == permissions::xu + (path_perms (t.path ()) & permissions::xu) == permissions::xu ? "755" : "644"); -- cgit v1.1