Writing to '\\.\X:' that has no backing PhysicalDrive?

2024-09-13 Thread Ilya Basin via Cygwin
Hi. I was trying to write an .img file to a VeraCrypt drive. VeraCrypt doesn't create a virtual PhysicalDrive so tools like Rufus don't see it. I hoped that with cygwin I would be able to do that, but Cygwin only creates /dev/sd?? nodes for PhysicalDrive partitions. I tried `dd` with '\\.\X:', bu

remount a subfolder on /cygdrive/c with notexec

2024-09-07 Thread ilya Basin via Cygwin
Hi. I want to speed-up access to Google Drive from Cygwin and I want to disable ReadFile when files are statted. I did the following: mkdir /cygnotexec mount -obind,notexec "/cygdrive/c/ClusterStorage/gdrive/blahb...@gmail.com" "/cygnotexec/basini...@gmail.com" mount -obind,notexec "/cygdrive/c

noacl no longer effective under /cygdrive. Still works in other locations

2024-07-19 Thread ilya Basin via Cygwin
Hi. For several years I had this in my /etc/fstab.d/$USER C: /cygdrive/c none binary,noacl,posix=0,user 0 0 I switched from Cygwin x86 to x64 recently and I noticed that even if `mount` prints this: $ mount | grep C: C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) C:/cygwin6

SIGALRM is not interrupting a blocking write to a pipe

2024-05-06 Thread ilya Basin via Cygwin
Hi List! I need your help with troubleshooting an issue with "pv": https://codeberg.org/a-j-wood/pv/issues/87 This app uses SIGALRM to interrupt a blocking write to STDOUT and read more data into the buffer. On Linuxes write() returns 0 after the signal, but on Cygwin even though the signal ha

Re: Snapshot of Cygwin from Windows XP era

2021-10-23 Thread Ilya Basin via Cygwin
No guarantee, but try these (from ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223 ) https://drive.google.com/file/d/106n5y7W7pAPY44qT1V5dh1jTBpA6Th1w/view?usp=sharing setup program: https://drive.google.com/file/d/1BEY17yS9cfvWvnkJtuLuIQo85emi02Bl/view?usp=sharing I have no Idea why I

socat UDP-LISTEN,fork misbehaves

2021-10-23 Thread Ilya Basin via Cygwin
Hi List. I have socat 1.7.4.1-1 and the same version on Linux. When I try to create a forking UDP server, only the first client is served, unlike in Linux where subsequent clients are served properly. Test case. Terminal 1: socat -v UDP-LISTEN:12345,reuseaddr,fork SYSTEM:"stdbuf -i0 -o0 -e0

Re: xinetd: PID 2280: Service tftp missing attribute user - DISABLING

2021-10-01 Thread ilya Basin via Cygwin
Upd: 1) There was a typo in the sed script. The correct one is: mkpasswd.exe | sed 's/^[^:]*\(cyg_server\):/\1:/;t;d' I also had to do the same for the unprivileged user "tftpd" created by /usr/bin/tftpd-config 2) After being successfully started by xinetd the tftp server logs to Windows

xinetd: PID 2280: Service tftp missing attribute user - DISABLING

2021-10-01 Thread ilya Basin via Cygwin
Hi. I installed xinetd and tftp-server recently, ran xinetd-config and tftpd-config, and enabled /etc/xinetd.d/tftp. However, I was getting the following error in Windows Event log: xinetd: PID 2280: Service tftp missing attribute user - DISABLING Workaround: # The xinetd user name must

Re: requestedExecutionLevel "asInvoker" is ignored for setup-x86_64.exe

2021-08-31 Thread Ilya Basin via Cygwin
Never mind. Just found in the FAQ that the installer tries to spawn an elevated child instead of using the manifest. So in "setup-x86_64.exe -B" the "-B" switch does the trick. On 31.08.2021 18:38, ilya Basin wrote: > Hi. > I noticed that despite having: > > > > in setup-x86_64.exe the U

requestedExecutionLevel "asInvoker" is ignored for setup-x86_64.exe

2021-08-31 Thread ilya Basin via Cygwin
Hi. I noticed that despite having: in setup-x86_64.exe the UAC prompt is not bypassed and when I click Cancel the program is not started. Previously I used the same binary to install Cygwin for "Just me" on a host where regular users are simply not allowed to trigger a UAC prompt. I have

Re: no regular expressions in less

2021-07-21 Thread Ilya Basin via Cygwin
Yes, 32bit. On 21.07.2021 21:18, Takashi Yano wrote: > On Wed, 21 Jul 2021 20:43:54 +0300 > Basin Ilya via Cygwin wrote: >> Hi list. >> I've just noticed that regexp search works identically to exact match search >> in less and it prints this: >> >> $ /usr/bin/less --version >> less 581.

Re: sshd.exe waits repeatedly with SYN_SENT for inaccessible ldap

2021-01-26 Thread Ilya Basin via Cygwin
The problem is solved. Our DHCP server was sending me a bad WINS server ip. After fixing the issue I had to reboot the PC (just refreshing the ip and restarting cygsshd was not enough). On 22.01.2021 22:07, basini...@gmail.com wrote: > Hi. The problem first appeared ten days ago. It now takes mi

sshd.exe waits repeatedly with SYN_SENT for inaccessible ldap

2021-01-22 Thread Ilya Basin via Cygwin
Hi. The problem first appeared ten days ago. It now takes minutes to login as a domain user. Tcpview shows that sshd.exe is trying to connect an inaccessible server on the port 389 (ldap). If I close the socket using Tcpview, successful login happens sooner. Both password and public key logins a

Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-12-05 Thread Ilya Basin via Cygwin
Strange. On Win7 this doesn't work: il@mar2 /cygdrive/c/Windows/System32 $ cat /proc/partitions major minor #blocks name win-mounts 8 0 0 sda 816 0 sdb il@mar2 /cygdrive/c/Windows/System32 $ dd of=/dev/null if=/dev/sda bs=1M

surrounding double quotes not removed from native command line arguments when they contain unicode and locale is default

2020-11-12 Thread Ilya Basin via Cygwin
Hi. When I launch a Cygwin program from a native Windows program and an argument in the command line string is quoted and contains national characters then the Cygwin program behaves as if double quotes were part of the program argument. This happens if I don't explicitly set LC_ALL or if I set L

Re: Something makes curl hang for 5 minutes after connection refused

2020-11-12 Thread Ilya Basin via Cygwin
This looks fixed now. Thanks. On 15.09.2019 10:07, Basin Ilya wrote: > Hi. > Any update on this? > > 01.12.2018 12:51, Corinna Vinschen пишет: >> On Nov 30 20:42, Brian Inglis wrote: >>> On 2018-11-30 12:49, Lee wrote: On 11/30/18, Basin Ilya wrote: > Hi. > > Recently I noticed t