Yaakov Selkowitz
2cb24159fb
cygwin: add LFS_CFLAGS etc. to confstr/getconf
...
These are used, for instance, when cross-compiling the Linux kernel.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com >
2018-01-16 12:12:45 -06:00
Yaakov Selkowitz
c37171b528
cygwin: fix getconf after commit 032aa2dba5
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com >
2017-11-28 11:36:14 -06:00
Ken Brown
3e8323dc06
winsup/utils/dump_setup.cc: Remove the function 'base'
...
This was called only on filenames in /etc/setup/installed.db, which
are all basenames anyway. Moreover, base wasn't correctly handling
filenames containing colons.
2017-10-25 17:02:26 +02:00
Fujii Hironori
4d336756fa
cygwin: regtool: encode error messages correctly
...
Error messages of regtool can't be read, which are encoded in,
for instance, SHIFT_JIS in Japanese Windows. Fix by using
wide chars instead of multibyte.
2017-06-20 13:17:49 +02:00
Daniel Santos
b43e28aef0
strace: Fix "over-optimization" flaw in strace.
...
Recent versions of gcc are optimizing away the TLS buffer allocated in
main, so we need to tell gcc that it's really used. RtlSecureZeroMemory
accomplishes this while also inlining the memset.
Signed-off-by: Daniel Santos <daniel.santos@pobox.com >
2017-04-19 20:17:04 +02:00
Jon Turney
a9da3e4e67
Make ldd stop after any non-continuable exception
...
Ensure that ldd always stops when the exception is flagged as
non-continuable.
Also arrange for ldd to exit with a non-zero exit code if something went
wrong which prevented us from listing all dynamic dependencies.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk >
2017-04-04 18:47:44 +01:00
Corinna Vinschen
f5ecacfc6c
Generate output with Unix line endings even from Mingw64 utils
...
This affects cygcheck and strace.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2017-02-24 20:55:14 +01:00
Jon Turney
a15297381d
Fix handling of '+' by 'cygcheck -p'
...
The form data sent to the server should be application/x-www-form-urlencoded
This replaces spaces with '+' before being RFC 1738 encoded, so a literal
'+' must be %-encoded also.
See https://cygwin.com/ml/cygwin/2014-01/msg00287.html et seq.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk >
2017-01-31 19:55:38 +00:00
Corinna Vinschen
584c6643fe
cygutils: Fix resource leak in get_short_paths
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-11-24 16:04:42 +01:00
Corinna Vinschen
9b01c29c04
Fix typo in kill(1)
...
buf is just a local buffer, sig is ultimately pointing to the
signal string.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-11-24 16:00:28 +01:00
Corinna Vinschen
bb7ad4ed64
pldd: Fix resource leak and missing check if fopen failed
...
Fixes Coverity CID 66903
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 17:22:34 +02:00
Corinna Vinschen
79edb254ac
passwd: Fix potential buffer overflow
...
Fixes Coverity CID 66956
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 17:16:30 +02:00
Corinna Vinschen
526107a753
mkgroup/mkpasswd: Fix potential buffer overwrite in corner case
...
Fixes Coverity CIDs 60076, 60077 and 60081
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 17:04:55 +02:00
Corinna Vinschen
7d5af6f0ba
getfacl: Don't trust length of incoming user/groupname
...
Fixes Coverity CIDs 60079 and 60080
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 16:52:28 +02:00
Corinna Vinschen
cf01b8f029
tzset: Fix array length given to GetGeoInfoW
...
Fixes Coverity CID 66916
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 16:45:21 +02:00
Corinna Vinschen
5e087a8373
strace: Fix Coverity issues
...
CID 66964: Don't trust environment variable without length check
CID 66968: Add missing va_end
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 16:38:48 +02:00
Corinna Vinschen
9807a501b1
cygcheck: Use snprintf instead of multiple strcat
...
This not only simplifies the code but also fixes potential
memory corruption
Fixes Coverity CID 66952
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 16:16:22 +02:00
Corinna Vinschen
f16f20ff95
cygcheck: Eenable output of Vista++ FS flags
...
Also, code cleanup
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-23 15:57:40 +02:00
Corinna Vinschen
015f6894a0
cygcheck: Eliminate dead code
...
Fixes Coverity CID 66907
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 22:57:03 +02:00
Corinna Vinschen
bbeef8ef3f
cygcheck: Fix broken test for invalid wcstombs conversion reading symlinks
...
Fixes Coverity CID 66905
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 22:53:29 +02:00
Corinna Vinschen
7909b528e5
cygcheck: Fix check for Cygwin symlink
...
Fixes Coverity CID 66904 and 66906
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 22:50:33 +02:00
Corinna Vinschen
61401f24ef
strace: Add comment trying to explain confusing code
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 22:39:31 +02:00
Corinna Vinschen
46c472a1c1
cygcheck: Close with pclose what has been opened with popen
...
Fixes Coverity CID 66900
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 22:14:34 +02:00
Corinna Vinschen
db8bda4b47
Remove unreachable code from passwd(1)
...
Fixed Coverity CID 66966
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-22 21:20:28 +02:00
Ken Brown
dda82d1a7b
Add _PC_CASE_INSENSITIVE to [f]pathconf
...
Update the getconf utility to support the new flag as well as
_PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY. These were previously
unsupported, probably as an oversight.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de >
2016-10-21 13:39:02 +02:00