From 756865fe13b55b585a96d415a7bb718395e221c1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Apr 2024 15:54:08 +0200 Subject: Change back binary name to kms-server-proxy --- build.sh | 2 +- main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2f8c54d..af8729e 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,4 @@ cd "$script_dir" cd depends/libcap/libcap make SHARED=no GOLANG=no PTHREADS=no cd ../../../ -gcc main.c -o kms-server-proxy-1 -fstack-protector-all -O3 -s -flto -Wall -Wextra -Werror -DNDEBUG -static -static-libgcc -I./depends/libcap/libcap/include ./depends/libcap/libcap/libcap.a +gcc main.c -o kms-server-proxy -fstack-protector-all -O3 -s -flto -Wall -Wextra -Werror -DNDEBUG -static -static-libgcc -I./depends/libcap/libcap/include ./depends/libcap/libcap/libcap.a diff --git a/main.c b/main.c index ba046f5..3a40e08 100644 --- a/main.c +++ b/main.c @@ -123,6 +123,7 @@ int main(int argc, char **argv) { return 1; char kms_server_proxy_local_filepath[PATH_MAX]; + /* Update kms-server-proxy-N to kms-server-proxy-N+1 on update (update that needs to run before this program launches itself) */ snprintf(kms_server_proxy_local_filepath, sizeof(kms_server_proxy_local_filepath), "%s/.local/share/gpu-screen-recorder/kms-server-proxy-1", user_homepath); if(file_has_sys_admin_capability(gsr_kms_server_filepath)) { -- cgit v1.2.3