Commit 9a1a0c1
committed
Respect the
In particular when we cannot figure out a uid for the current user, we
should still respect the `db_home: env` setting. Such a situation occurs
for example when the domain returned by `LookupAccountSid()` is not our
machine name and at the same time our machine is no domain member: In
that case, we have nobody to ask for the POSIX offset necessary to come
up with the uid.
It is important that even in such cases, the HOME environment variable
can be used to override the home directory, e.g. when Git for Windows is
used by an account that was generated on the fly, e.g. for transient use
in a cloud scenario.
Reported by David Ebbo.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>db_home: env setting under more circumstances1 parent 6dba653 commit 9a1a0c1
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| 1113 | + | |
| 1114 | + | |
1113 | 1115 | | |
1114 | 1116 | | |
1115 | 1117 | | |
| |||
2169 | 2171 | | |
2170 | 2172 | | |
2171 | 2173 | | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2172 | 2177 | | |
2173 | 2178 | | |
2174 | 2179 | | |
| |||
2698 | 2703 | | |
2699 | 2704 | | |
2700 | 2705 | | |
2701 | | - | |
| 2706 | + | |
2702 | 2707 | | |
2703 | 2708 | | |
2704 | | - | |
| 2709 | + | |
| 2710 | + | |
2705 | 2711 | | |
2706 | 2712 | | |
2707 | 2713 | | |
| |||
0 commit comments