]> sourceware.org Git - cygwin-apps/csih.git/log
cygwin-apps/csih.git
9 months agoBump version to 0.9.14 master v0_9_14
Corinna Vinschen [Thu, 7 Dec 2023 10:37:20 +0000 (11:37 +0100)]
Bump version to 0.9.14

9 months agogetVolInfo: revamp
Corinna Vinschen [Thu, 7 Dec 2023 10:37:00 +0000 (11:37 +0100)]
getVolInfo: revamp

- drop always available Windows definitions
- add definitions missing from winternl.h
- make locale aware
- drop wchar<->char conversions and print wchar strings directly
- simplify flag printing
- print hex values with leading 0x and leading zeros
- add printing of flags from FILE_FS_SECTOR_SIZE_INFORMATION

18 months agoBump version to 0.9.13 v0_9_13
Corinna Vinschen [Sat, 18 Mar 2023 09:36:21 +0000 (10:36 +0100)]
Bump version to 0.9.13

18 months agoUpdate getVolInfo to the latest set of known filesystem flags
Corinna Vinschen [Sat, 18 Mar 2023 09:36:02 +0000 (10:36 +0100)]
Update getVolInfo to the latest set of known filesystem flags

19 months agobump version to 0.9.12 v0_9_12
Corinna Vinschen [Thu, 9 Feb 2023 14:11:12 +0000 (15:11 +0100)]
bump version to 0.9.12

19 months agocleanup code, improve OS output
Corinna Vinschen [Thu, 9 Feb 2023 13:42:35 +0000 (14:42 +0100)]
cleanup code, improve OS output

6 years agoFix the test of whether the computer is on a domain.
Takashi Yano [Sat, 16 Jun 2018 10:13:52 +0000 (19:13 +0900)]
Fix the test of whether the computer is on a domain.

* cygwin-service-installation-helper.sh (csih_select_rivileged_username):
  In the case logged in as a local user, csih failed to judge to be
  on a domain even if the computer is on a domain.  This is because
  ${LOGSERVER,,*} has the same value as \\\\${COMPUTERNAME,,*}. The
  fix is done to use cygwin username returned by mkpasswd command to
  check it instead. Also, testing has been changed so that USERDOMAIN
  is used instead of LOGONSERVER because LOGONSERVER may not be set
  if "Run as administrator" is used.

  See the post below for more detail.
  https://cygwin.com/ml/cygwin/2018-06/msg00166.html

6 years agoBump version to 0.9.11. v0_9_11
Corinna Vinschen [Fri, 15 Jun 2018 13:29:28 +0000 (15:29 +0200)]
Bump version to 0.9.11.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
6 years agoLink native tools with --static
Corinna Vinschen [Fri, 15 Jun 2018 13:29:01 +0000 (15:29 +0200)]
Link native tools with --static

This avoids dependencies to libssp-0.dll and libwinpthread-1.dll at runtime

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
6 years agoBump version to 0.9.10. v0_9_10
Corinna Vinschen [Thu, 14 Jun 2018 12:34:08 +0000 (14:34 +0200)]
Bump version to 0.9.10.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
6 years agoSetting privileged rights to cyg_server fails on Windows 7.
Takashi Yano [Wed, 13 Jun 2018 13:49:01 +0000 (22:49 +0900)]
Setting privileged rights to cyg_server fails on Windows 7.

Hi,

I have found that iu-config of inetutils package fails to set
the privileged rights to cyg_server on Windows 7 if the machine
is not domain member.

I looked into this problem, and found that this is the problem
of csih package.

In other words, csih expects environment variable LOGONSERVER
is set, but it is not set on Windows 7 without domain.

This issue is resoleved with following simple patch.

I hope fixed version of csih will be released.

7 years agoMove call of mkpasswd UPwards in csih_create_privileged_user
J.H. van de Water [Wed, 7 Jun 2017 11:36:27 +0000 (13:36 +0200)]
Move call of mkpasswd UPwards in csih_create_privileged_user

Move call of mkpasswd UPwards in csih_create_privileged_user, and place it
before the 1st call of passwd.

7 years agoAmend prologue of csih_use_file_etc
J.H. van de Water [Wed, 7 Jun 2017 11:28:21 +0000 (13:28 +0200)]
Amend prologue of csih_use_file_etc

Prologue (bottom) of csih_use_file_etc should state:

    Returns 1 if files shall be used, 0 otherwise.

Currently it states the reverse.

7 years agossh-host-config: patch fix debug option + broken for me on Vista (non-domain)
Shaddy Baddah [Wed, 18 Jan 2017 03:34:04 +0000 (14:34 +1100)]
ssh-host-config: patch fix debug option + broken for me on Vista (non-domain)

Hi,

First please find attached a simple patch that fixes a problem I
encountered running ssh-host-config with the --debug option.

Pretty simple. Without redirecting the output of csih_stacktrace() to
stderr, then (3.5.4) Command Substitution of functions that call it will
run into problems. And the one that I encountered was this one:

cygwin-service-installation-helper.sh:1147:csih_mktemp ()
cygwin-service-installation-helper.sh:1148:{
cygwin-service-installation-helper.sh:1149:  csih_stacktrace "${@}"
cygwin-service-installation-helper.sh:1150:  $_csih_trace
cygwin-service-installation-helper.sh:1152:  local __umask=$(umask)
cygwin-service-installation-helper.sh:1153:  local rval
cygwin-service-installation-helper.sh:1154:  local tmpdir
cygwin-service-installation-helper.sh:1156: tmpdir=$(csih_writable_tmpdir) ||
return 1
cygwin-service-installation-helper.sh:1158:  umask 0077
cygwin-service-installation-helper.sh:1159:  /usr/bin/mktemp
--tmpdir="${tmpdir}" "$@"

tmpdir will be filled with stacktrace output from the
csih_writable_tmpdir() call, and mktemp will fail.

8 years agoFix creation of privileged user in /etc/passwd
Achim Gratz [Fri, 11 Mar 2016 19:43:33 +0000 (20:43 +0100)]
Fix creation of privileged user in /etc/passwd

* cygwin-service-installation-helper.sh (csih_create_privileged_user):
  The user name for the priviledged user is in
  ${csih_PRIVILEGED_USERNAME} in this function, so use this variable
  instead of ${username}.

Reported and fix suggested by Nick Battle in
https://cygwin.com/ml/cygwin/2016-03/msg00154.html

8 years agoBump version to 0.9.9. v0_9_9
Corinna Vinschen [Wed, 28 Oct 2015 09:18:22 +0000 (10:18 +0100)]
Bump version to 0.9.9.

9 years agoGroup Permissions on root folders problem (Windows 10 TP build 10061)
Takashi Yano [Fri, 11 Sep 2015 12:33:46 +0000 (21:33 +0900)]
Group Permissions on root folders problem (Windows 10 TP build 10061)

Hi Corinna,

On Fri, 11 Sep 2015 13:10:12 +0200
Corinna Vinschen wrote:
> In theory, yes.  The problem is just that checking the uid/gid equality
> is not safe, given that you can easily create that via passwd/group
> files.  What I was thinking of is to convert the uid/gid values into
> SIDs using the `getent' tool and to compare those, along the lines of
>
>   uid=$(/usr/bin/stat -c '%u')
>   user_sid=$(getent passwd -w $uid | awk -F: '{print $4}')
>   gid=$(/usr/bin/stat -c '%g')
>   grp_sid=$(getent group -w $gid | awk -F: '{print $4}')
>   if [ "${user_sid}" = "${grp_sid}" ]
>     ...
>
> Can you check if that works in your env and perhaps create a new patch
> using the SIDs?

I have made a new patch and confirmed that it also works.

9 years agoFix creating cyg_server user when running under Microsoft Account
Takashi Yano [Thu, 10 Sep 2015 17:22:22 +0000 (19:22 +0200)]
Fix creating cyg_server user when running under Microsoft Account

Fixes https://cygwin.com/ml/cygwin/2015-06/msg00265.html

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
9 years agoDeprecate ChangeLog
Corinna Vinschen [Thu, 10 Sep 2015 17:18:50 +0000 (19:18 +0200)]
Deprecate ChangeLog

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
9 years ago * cygwin-service-installation-helper.sh: Throughout replace *server1014
Corinna Vinschen [Sun, 30 Aug 2015 19:52:57 +0000 (19:52 +0000)]
* cygwin-service-installation-helper.sh: Throughout replace *server1014
with *server1016.
* native/winProductName.c (products): Add missing values since W10.
(GetOSDisplayString): Rename Server 2014 to Server 2016.

9 years agocygwin-service-installation-helper: add SeDenyInteractiveLogonRight for service user
Achim Gratz [Thu, 2 Apr 2015 15:04:44 +0000 (15:04 +0000)]
cygwin-service-installation-helper: add SeDenyInteractiveLogonRight for service user

9 years agoSummary: correct the return value in the case that /etc/nsswitch.conf exists, but... v0_9_8
Achim Gratz [Mon, 23 Feb 2015 19:17:05 +0000 (19:17 +0000)]
Summary: correct the return value in the case that /etc/nsswitch.conf exists, but has no active line for that file

* cygwin-service-installation-helper.sh (csih_use_file_etc):
Correct the return value in the case that /etc/nsswitch.conf
exists, but has no active line for that file.  The default
contains db, so use_file=1 must be maintained.  Add a comment for
that case.

9 years ago * cygwin-service-installation-helper.sh
Achim Gratz [Fri, 20 Feb 2015 08:50:55 +0000 (08:50 +0000)]
* cygwin-service-installation-helper.sh
(csih_get_system_and_admins_ids): Remove reference to
/etc/{passwd/group} files.
(csih_check_passwd_and_group): Branch code based on the result of
csih_old_cygwin.  Correct comment about the version that change
happened in Cygwin.
(csih_old_cygwin): Factor out check for Cygwin version that do not
have DB-based user/group lookup. Correct version that code
actually went into Cygwin.
(csih_use_file_etc): Use csih_old_cygwin.  Correct the check for
nsswitch.conf content so that it confroms to the intended and
commented behaviour.
* cygwin-service-installation-helper.sh: Whitespace cleanup (only
trailing spaces, consider tabification).  Register new function
"csih_old_cygwin".

9 years ago * cygwin-service-installation-helper.sh (csih_use_file_etc): Fix regular
Corinna Vinschen [Thu, 8 Jan 2015 15:27:57 +0000 (15:27 +0000)]
* cygwin-service-installation-helper.sh (csih_use_file_etc): Fix regular
expression to catch commented out "db" entry correctly.

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 7 Jan 2015 16:48:55 +0000 (16:48 +0000)]
*** empty log message ***

9 years ago * cygwin-service-installation-helper.sh (csih_privileged_accounts):
Corinna Vinschen [Wed, 7 Jan 2015 16:46:21 +0000 (16:46 +0000)]
* cygwin-service-installation-helper.sh (csih_privileged_accounts):
Fix copy/paste bug.
(csih_create_privileged_user): Evaluate local Windows administrators
group name instead of relying on Cygwin group name.  Fix error message.
* version.h (VERSION_MICRO): Bump to 9.

9 years ago * cygwin-service-installation-helper.sh (csih_create_local_group): Fix
Corinna Vinschen [Thu, 11 Dec 2014 10:17:02 +0000 (10:17 +0000)]
* cygwin-service-installation-helper.sh (csih_create_local_group): Fix
typo.

9 years ago * native/Makefile: More changes to allow cross-building (barely).
Corinna Vinschen [Wed, 10 Dec 2014 19:50:26 +0000 (19:50 +0000)]
* native/Makefile: More changes to allow cross-building (barely).

9 years ago * version.h (VERSION_MICRO): Bump to 8.
Corinna Vinschen [Wed, 10 Dec 2014 19:33:54 +0000 (19:33 +0000)]
* version.h (VERSION_MICRO): Bump to 8.
* native/Makefile (LIBS): Drop default-manifest file.
* native/Win32Error.h: Downcase header filenames to enable cross
compiling.
* native/getAccountName.cpp: Drop useless tchar.h include.

9 years ago * Makefile: Remove stray trailing backslash.
Corinna Vinschen [Wed, 10 Dec 2014 19:11:58 +0000 (19:11 +0000)]
* Makefile: Remove stray trailing backslash.
* winProductName.c (GetOSDisplayString): Always call GetNativeSystemInfo
since we're only supporting XP and later anyway.  Drop checks for
older OS-versions.  Rearrange Major/Minor OS number check to accommodate
the menacing OS version 10.x for Windows 10.

9 years ago * cygwin-service-installation-helper.sh: Drop global checks for NT and
Corinna Vinschen [Mon, 24 Nov 2014 13:23:09 +0000 (13:23 +0000)]
* cygwin-service-installation-helper.sh: Drop global checks for NT and
Cygwin version 1.7.
(csih_VERSION): Bump to 0.9.8.
(csih_PRIVILEGED_USERWINNAME): New global variable.
(csih_PRIVILEGED_USERDOMAIN): Ditto.
(csih_UNPRIVILEGED_USERNAME): Ditto.
(csih_UNPRIVILEGED_USERWINNAME): Ditto.
(csih_UNPRIVILEGED_USERDOMAIN): Ditto.
(csih_LOCAL_GROUPNAME): Ditto.
(csih_LOCAL_GROUPWINNAME): Ditto.
(csih_LOCAL_GROUPDOMAIN): Ditto.
(_csih_well_known_privileged_accounts): Add machinename-prefixed names.
(_csih_well_known_privileged_accounts_quoted): Ditto.
(_csih_sanity_check): Check for getent.
(_csih_nt): Remove.
(_csih_2k): Remove.
(_csih_windows8_1): Add.
(_csih_windows10): Add.
(_csih_exactly_windows8_1): Add.
(_csih_exactly_windows10): Add.
(csih_is_nt): Always return 0.
(csih_is_2k): Ditto.
(csih_is_xp): Ditto.
(csih_is_windows8_1): New function.
(csih_is_windows10): Ditto.
(csih_cygver_is_oneseven): Always return 0.
(csih_is_exactly_windows8_1): New function.
(csih_is_exactly_server2012r2): Ditto.
(csih_is_exactly_windows10): Ditto.
(csih_is_exactly_server2014): Ditto.
(csih_check_sys_mount): Always return 0.
(csih_use_file_etc): New function to check for /etc/passwd or
/etc/group requirement.
(csih_get_system_and_admins_ids): Don't require /etc/passwd or
/etc/group.  Allow new Cygwin usernames generated from Windows account
DBs.
(csih_check_passwd_and_group): Ditto.
(csih_check_user): Ditto.
(csih_privileged_accounts): Ditto.
(csih_account_has_necessary_privileges): Ditto.
(csih_select_privileged_username): Ditto.
(csih_create_privileged_user): Ditto.
(csih_create_unprivileged_user): Ditto.
(csih_service_should_run_as): Ditto.
(csih_create_local_group): New function.
(_csih_late_initialization_code): Set new OS variables.

9 years ago * native/Makefile (LIBS): Add default-manifest file.
Corinna Vinschen [Mon, 10 Nov 2014 17:17:40 +0000 (17:17 +0000)]
* native/Makefile (LIBS): Add default-manifest file.
(NTDLL): Define.
(getAccountName): Add $(CFLAGS).  Fix usage of $(LIBS) for
PE/COFF platform.
(winProductName): Ditto.  Add $(NTDLL).
* native/winProductName.c: Re-indent for better readability.  Remove
not working tchar.h overhead.
(products): Drop "note"-type comments.
(RtlGetVersion): Declare.
(RtlGetProductInfo): Declare.
(GetOSDisplayString): Use RtlGetVersion and RtlGetProductInfo.  Explain
why.  Use switch statements rather than if/else if chains where
applicable.  Add support for Windows 8.1, Server 2012 R2, Windows 10 and
Server 2014(?).  Drop support for Windows versions prior to Windows XP.

11 years agoRelease 0.9.7 v0_9_7
Charles Wilson [Tue, 9 Apr 2013 05:35:47 +0000 (05:35 +0000)]
Release 0.9.7

12 years ago0.9.6 release v0_9_6
Charles Wilson [Mon, 26 Mar 2012 22:03:51 +0000 (22:03 +0000)]
0.9.6 release

12 years ago0.9.5 release v0_9_5
Charles Wilson [Thu, 9 Feb 2012 05:53:33 +0000 (05:53 +0000)]
0.9.5 release

13 years ago0.9.4 release v0_9_4
Charles Wilson [Sun, 13 Feb 2011 23:22:34 +0000 (23:22 +0000)]
0.9.4 release

13 years agoAdd support for tmpfiles; remove obsolete code.
Charles Wilson [Sat, 12 Feb 2011 20:02:33 +0000 (20:02 +0000)]
Add support for tmpfiles; remove obsolete code.

13 years agoVerify external tools before using; invoke via full paths.
Charles Wilson [Fri, 11 Feb 2011 19:01:33 +0000 (19:01 +0000)]
Verify external tools before using; invoke via full paths.

13 years ago0.9.3 release v0_9_3
Charles Wilson [Mon, 7 Feb 2011 18:53:26 +0000 (18:53 +0000)]
0.9.3 release

13 years agoUpdate getVolInfo; tag as release v0_9_2
Charles Wilson [Tue, 16 Nov 2010 22:06:07 +0000 (22:06 +0000)]
Update getVolInfo; tag as release

13 years agoBump version number
Charles Wilson [Tue, 16 Nov 2010 21:31:25 +0000 (21:31 +0000)]
Bump version number

13 years agoFix typos
Charles Wilson [Tue, 16 Nov 2010 21:22:16 +0000 (21:22 +0000)]
Fix typos

13 years agoDocument XP64/XP32 issues. Remove vestiges of Win9x.
Charles Wilson [Tue, 16 Nov 2010 21:04:05 +0000 (21:04 +0000)]
Document XP64/XP32 issues. Remove vestiges of Win9x.

15 years agoFix bug in recent commit v0_9_1
Charles Wilson [Sat, 1 Aug 2009 20:41:19 +0000 (20:41 +0000)]
Fix bug in recent commit

15 years agoRelease 0.9.1
Charles Wilson [Sat, 1 Aug 2009 20:31:35 +0000 (20:31 +0000)]
Release 0.9.1

15 years agoFix volinfo wrt HGFS)
Charles Wilson [Sat, 1 Aug 2009 20:30:18 +0000 (20:30 +0000)]
Fix volinfo wrt HGFS)

15 years agoReport error for unsupported OS or cygwin version
Charles Wilson [Mon, 4 May 2009 01:03:51 +0000 (01:03 +0000)]
Report error for unsupported OS or cygwin version

15 years agoUpdate version numbers for trunk: 0.9.0
Charles Wilson [Mon, 4 May 2009 00:35:03 +0000 (00:35 +0000)]
Update version numbers for trunk: 0.9.0

15 years agoRelease 0.2.0 BRANCH_v0_2 v0_2_0
Charles Wilson [Sun, 3 May 2009 23:43:52 +0000 (23:43 +0000)]
Release 0.2.0

15 years agoACLs for /var/*; supress unnecessary info msgs
Charles Wilson [Sun, 3 May 2009 23:37:20 +0000 (23:37 +0000)]
ACLs for /var/*; supress unnecessary info msgs

15 years agoUnattended installation
Charles Wilson [Sun, 29 Mar 2009 04:15:33 +0000 (04:15 +0000)]
Unattended installation

15 years ago * csih.sh (csih_get_cygenv): Don't check input for certain values.
Corinna Vinschen [Wed, 28 Jan 2009 17:31:46 +0000 (17:31 +0000)]
* csih.sh (csih_get_cygenv): Don't check input for certain values.

16 years agoSuppress error messages in _csih_setup
Charles Wilson [Fri, 22 Aug 2008 03:56:43 +0000 (03:56 +0000)]
Suppress error messages in _csih_setup

16 years agocorrect csih_check_access behavior
Charles Wilson [Fri, 22 Aug 2008 03:08:12 +0000 (03:08 +0000)]
correct csih_check_access behavior

16 years agoBetter support for domain accounts; other cleanups
Charles Wilson [Wed, 20 Aug 2008 18:35:38 +0000 (18:35 +0000)]
Better support for domain accounts; other cleanups

16 years agobug fixes, Vista support, and cygwin-1.7 support
Charles Wilson [Sun, 17 Aug 2008 01:44:43 +0000 (01:44 +0000)]
bug fixes, Vista support, and cygwin-1.7 support

16 years agoAdd getVolInfo utility program. Use it to avoid
Charles Wilson [Thu, 7 Aug 2008 23:17:32 +0000 (23:17 +0000)]
Add getVolInfo utility program. Use it to avoid
checking permissions on volumes that do not support ACLs.

16 years agoAccept pre-existing privileged domain accounts.
Charles Wilson [Tue, 5 Aug 2008 01:13:28 +0000 (01:13 +0000)]
Accept pre-existing privileged domain accounts.
Default to privileged account on NT/2k/XP if exist.

16 years agomore modifications with regards to the privileges of the privuser
Charles Wilson [Sat, 19 Jul 2008 20:59:31 +0000 (20:59 +0000)]
more modifications with regards to the privileges of the privuser

16 years agotweak privileged user's privileges v0_1_5
Charles Wilson [Sat, 19 Jul 2008 16:40:31 +0000 (16:40 +0000)]
tweak privileged user's privileges

16 years agoPrepare for 0.1.4 release v0_1_4
Charles Wilson [Mon, 14 Apr 2008 18:36:05 +0000 (18:36 +0000)]
Prepare for 0.1.4 release

16 years agofix goof of csih_VERSION
Charles Wilson [Tue, 8 Apr 2008 04:38:59 +0000 (04:38 +0000)]
fix goof of csih_VERSION

16 years agoUpdate csih_select_privileged_username for user-config scripts; fix typos; add versio...
Charles Wilson [Tue, 8 Apr 2008 04:38:15 +0000 (04:38 +0000)]
Update csih_select_privileged_username for user-config scripts; fix typos; add version comparison functions

16 years agoAdd --help to winProductName
Charles Wilson [Thu, 3 Apr 2008 05:57:06 +0000 (05:57 +0000)]
Add --help to winProductName

16 years agobrown paper bag v0_1_3
Charles Wilson [Sun, 16 Mar 2008 22:22:30 +0000 (22:22 +0000)]
brown paper bag

16 years agoChanges for 0.1.2 v0_1_2
Charles Wilson [Sun, 16 Mar 2008 22:07:01 +0000 (22:07 +0000)]
Changes for 0.1.2

16 years agoInitial import start v0_1_1
Charles Wilson [Sun, 16 Mar 2008 21:53:44 +0000 (21:53 +0000)]
Initial import

This page took 0.481509 seconds and 5 git commands to generate.