- From bf72e84065ecc8d9f7653a0740bcfc813a9eedbe Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 17 Jun 2025 14:48:20 +0200
- Subject: [PATCH 1/3] tests: Fix $ winsg /g None /C 'C:\cygwin64\bin\id.exe -a'
- #
- Fix $ winsg /g None /C 'C:\cygwin64\bin\id.exe -a' # - it
- fails because a normal |char *| instead of |wchar_t *| string
- was passed to |_wspawnl()|.
- Reported-by: Aurelien Couderc <aurelien.couderc2002@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- tests/winsg/winsg.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/tests/winsg/winsg.c b/tests/winsg/winsg.c
- index 77600f3..b744c56 100644
- --- a/tests/winsg/winsg.c
- +++ b/tests/winsg/winsg.c
- @@ -525,7 +525,7 @@ int wmain(int ac, wchar_t *av[])
- if (av[cmd_arg_index] != NULL) {
- subcmdret = _wspawnl(_P_WAIT,
- WIN32_CMDEXE_PATH, WIN32_CMDEXE_PATH,
- - "/C", av[cmd_arg_index], NULL);
- + L"/C", av[cmd_arg_index], NULL);
- }
- else {
- subcmdret = _wspawnl(_P_WAIT,
- --
- 2.45.1
- From ee5dde5c410421febfee5edbc580a6ad8417bfb0 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 17 Jun 2025 14:54:18 +0200
- Subject: [PATCH 2/3] tests: winsg: Cleanup non-|wchar_t| string literals
- winsg: Cleanup non-|wchar_t| string literals.
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- tests/winsg/winsg.c | 14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
- diff --git a/tests/winsg/winsg.c b/tests/winsg/winsg.c
- index b744c56..bfc0b49 100644
- --- a/tests/winsg/winsg.c
- +++ b/tests/winsg/winsg.c
- @@ -150,12 +150,12 @@ bool is_group_in_token(HANDLE tok, PSID qsid)
- for (i = 0 ; i < ptgroups->GroupCount ; i++) {
- if (EqualSid(qsid, ptgroups->Groups[i].Sid) &&
- (ptgroups->Groups[i].Attributes & SE_GROUP_ENABLED)) {
- - D((void)puts("is_group_in_token: #match"));
- + D((void)fwprintf(stdout, L"is_group_in_token: #match\n"));
- return true;
- }
- }
- - D((void)puts("is_group_in_token: #no match"));
- + D((void)fwprintf(stdout, L"is_group_in_token: #no match\n"));
- return false;
- }
- @@ -198,7 +198,7 @@ int print_groups_in_token(HANDLE tok)
- if (!LookupAccountSidW(NULL, ptgroups->Groups[i].Sid,
- namebuffer, &namesize, domainbuffer, &domainbuffer_size, &name_use)) {
- D((void)fwprintf(stderr, L"print_groups_in_token: "
- - "LookupAccountSidW() failed, status=%d.\n",
- + L"LookupAccountSidW() failed, status=%d.\n",
- (int)GetLastError()));
- continue;
- }
- @@ -306,8 +306,8 @@ int usage(void)
- L"winsg -g ...\n"
- L"\t\twinsg -L\n"
- L"\n"
- - "Please report bugs to "
- - "Roland Mainz <roland.mainz@nrubsig.org>.\n");
- + L"Please report bugs to "
- + L"Roland Mainz <roland.mainz@nrubsig.org>.\n");
- return 2;
- }
- @@ -463,7 +463,7 @@ int wmain(int ac, wchar_t *av[])
- wchar_t pgroupname[GNLEN+1];
- get_token_primarygroup_name(tok, pgroupname);
- - (void)printf("primary group name '%ls'\n", pgroupname);
- + (void)fwprintf(stdout, L"primary group name '%ls'\n", pgroupname);
- )
- DECLARE_SID_BUFFER(sidbuff);
- @@ -495,7 +495,7 @@ int wmain(int ac, wchar_t *av[])
- D(
- get_token_primarygroup_name(tok, pgroupname);
- - (void)printf("primary group name '%ls'\n", pgroupname);
- + (void)fwprintf(stdout, L"primary group name '%ls'\n", pgroupname);
- )
- (void)_flushall();
- --
- 2.45.1
- From ccb3a2cfbf6a7086d0483058b8587c49930fcb15 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 17 Jun 2025 15:12:53 +0200
- Subject: [PATCH 3/3] cygwin: Install 32bit versions of winsg and nfs_ea on
- 64bit installations
- Install 32bit versions of winsg.exe and nfs_ea.exe on 64bit installations
- (e.g. for API testing).
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- cygwin/Makefile.install | 12 ++++++++----
- 1 file changed, 8 insertions(+), 4 deletions(-)
- diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
- index 1b6ed34..e3d8e5a 100644
- --- a/cygwin/Makefile.install
- +++ b/cygwin/Makefile.install
- @@ -115,15 +115,19 @@ installdest:
- if [[ "$(CYGWIN_BASEPATH)" == *64* ]] ; then \
- (cd $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/ && ln -sf lssparse.x86_64.exe lssparse.exe) \
- fi
- + cp "$(PROJECT_BASEDIR_DIR)/tests/winsg/winsg.x86_64.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/winsg.x86_64.exe
- + cp "$(PROJECT_BASEDIR_DIR)/tests/winsg/winsg.i686.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/winsg.i686.exe
- if [[ "$(CYGWIN_BASEPATH)" == *64* ]] ; then \
- - cp "$(PROJECT_BASEDIR_DIR)/tests/winsg/winsg.x86_64.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/winsg.exe ; \
- + (cd $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/ && ln -sf winsg.x86_64.exe winsg.exe) \
- else \
- - cp "$(PROJECT_BASEDIR_DIR)/tests/winsg/winsg.i686.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/winsg.exe ; \
- + (cd $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/ && ln -sf winsg.i686.exe winsg.exe) \
- fi
- + cp "$(PROJECT_BASEDIR_DIR)/tests/ea/nfs_ea.x86_64.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/nfs_ea.x86_64.exe
- + cp "$(PROJECT_BASEDIR_DIR)/tests/ea/nfs_ea.i686.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/nfs_ea.i686.exe
- if [[ "$(CYGWIN_BASEPATH)" == *64* ]] ; then \
- - cp "$(PROJECT_BASEDIR_DIR)/tests/ea/nfs_ea.x86_64.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/nfs_ea.exe ; \
- + (cd $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/ && ln -sf nfs_ea.x86_64.exe nfs_ea.exe) \
- else \
- - cp "$(PROJECT_BASEDIR_DIR)/tests/ea/nfs_ea.i686.exe" $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/nfs_ea.exe ; \
- + (cd $(DESTDIR)/$(CYGWIN_BASEPATH)/bin/ && ln -sf nfs_ea.i686.exe nfs_ea.exe) \
- fi
- cp $(PROJECT_BASEDIR_DIR)/tests/nfsbuildtest/nfsbuildtest.ksh93 $(DESTDIR)/$(CYGWIN_BASEPATH)/usr/share/msnfs41client/tests/misc/nfsbuildtest.ksh93
- cp $(PROJECT_BASEDIR_DIR)/tests/sparsefiles/testsparsefile1.ksh $(DESTDIR)/$(CYGWIN_BASEPATH)/usr/share/msnfs41client/tests/sparsefiles/testsparsefile1.ksh
- --
- 2.45.1
[patch] msnfs41client: Fixes for winsg+misc, 2025-06-17 ...
Posted by Anonymous on Tue 17th Jun 2025 14:18
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.