Re: Overwriting /etc/fstab to simplify drivenames

2025-04-25 Thread Andrey Repin via Cygwin
Greetings, Fergus Daly! > For years I have overwritten the content of the default /etc/fstab with the > one-liner > none / cygdrive binary 0 0 > thus allowing drivenames of the style /d/ instead of /cygdrive/d/ > which syntax is (2nd) shorter but mainly (1st) easily mimics Linux syntax > making

Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Andrey Repin via Cygwin
Greetings, Bruno Haible! > In Gnulib, we have a unit test that compiles the program below as a > native Windows program (either with mingw or with MSVC), that exercises > the Gnulib select() function > >

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-13 Thread Andrey Repin via Cygwin
Greetings, Jeremy Drake! > On Fri, 11 Apr 2025, Andrey Repin via Cygwin wrote: >> Though, I'm using takecommand's free runtime (TCC-RT), which has an explicit >> START /ELEVATED command, and I'm using a wrapper for such tasks. > cygutils' > cygsta

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Andrey Repin via Cygwin
Greetings, Mark Liam Brown! > How can I modify a Cygwin bash script so it runs in elevated > Administrator mode when someone double-clicks it in Windows Explorer? Add a block that runs an admin only command and check for exit code. The `net session` or `openfiles` commands are a good candidate fo

Re: child_info_fork::abort: cygpng16-16.dll

2025-04-10 Thread Andrey Repin via Cygwin
Greetings, Jim Reisert AD1C! > On one of my computers (but not the other), I get this error when I > try to start Emacs 29.4 in an xterm: > 0 [main] emacs-gtk 2079 child_info_fork::abort: > \??\D:\Cygwin\bin\cygpng16-16.dll: Loaded to different address: > parent(0xCB) != child(0x25E

Re: symbolic link curiousity in 3.6.0

2025-04-01 Thread Andrey Repin via Cygwin
Greetings, Paul Eggert! > On 3/31/25 12:26, Corinna Vinschen wrote: >> ls(1) always potentially shows a past state anyway. > Sure, but traditionally (and I'm talking about 7th edition Unix) a single > output line of 'ls' corresponded to a state obtained atomically from the > file system. I realiz

Re: update-ca-trust does not create openssl bundle

2025-03-30 Thread Andrey Repin via Cygwin
Greetings, ASSI! > Andrey Repin via Cygwin writes: >> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is missing from my >> system. >> The `update-ca-trust extract` doesn't even touch it. >> >> What happened? > Fedora dropped the command

Re: update-ca-trust does not create openssl bundle

2025-02-28 Thread Andrey Repin via Cygwin
Greetings, ASSI! > Andrey Repin via Cygwin writes: >> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is missing from my >> system. >> The `update-ca-trust extract` doesn't even touch it. >> >> What happened? > Fedora dropped the command

Re: update-ca-trust does not create openssl bundle

2025-02-25 Thread Andrey Repin via Cygwin
Greetings, Marco Atzeri! > On 25/02/2025 08:00, Andrey Repin via Cygwin wrote: >> Greetings, All! >> > /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is missing from my >> system. >> The `update-ca-trust extract` doesn't even touch it. >> > Wha

Re: Cloning enterprise github repo with cygwin git tries to use username/password auth, have to use Windows git

2025-02-10 Thread Andrey Repin via Cygwin
Greetings, KARR, DAVID! > I'm now trying to connect to our new enterprise Github repositories. I > have created a PAT in Github. I've verified that it works by testing it with > some code using the github rest api. Until now, I haven't attempted a clone > from the new repositories or pushing to

Re: |IO_REPARSE_TAG_MOUNTPOINT| (Junctions) not working for remote filesystems in Cygwin ?

2025-02-06 Thread Andrey Repin via Cygwin
Greetings, Corinna Vinschen via Cygwin! > On Feb 4 14:47, Jeremy Drake via Cygwin wrote: >> On Tue, 4 Feb 2025, Roland Mainz via Cygwin wrote: >> >> > it seems that Cygwin does not support |IO_REPARSE_TAG_MOUNTPOINT| for >> > "remote" filesystems: >> > snip >> > 2582/* Don't

Re: Inheriting all ownership, rights and files from an user

2025-01-25 Thread Andrey Repin via Cygwin
Greetings, José Isaías Cabrera! >> My windows account just changed from e608313 to u618346 and I would like to >> > use the old setup that I had on the old account under the new account in >> > cygwin. How is this possible? Thanks. >> > >> >> This may be possible by using the native Windows icacls

Re: Bug? GetCommandLineW() missing arguments in 64 bit Cygwin.

2025-01-19 Thread Andrey Repin via Cygwin
Greetings, Kaz Kylheku! > Hi All, > In a (admittedly not current) version of 64 bit Cygwin, I'm observing a funny > behavior: > The GetCommandLineW function returns a command line which consists of the > executable name only; the arguments are missing. Why you are using native calls inside Cyg

Re: env and PATH

2025-01-13 Thread Andrey Repin via Cygwin
Greetings, Federico Kircheis! > On 09/01/2025 08.31, Andrey Repin wrote: >> The apparent issue you are missing is that you are calling native app from >> Cygwin environment. >> Each have its own rules, and to have it working with minimal issues, you'd >> need to satisfy both sides. >> In specific

Re: Cygwin main function: vulnerable to wchar_t to char conversion attacks or not?

2025-01-09 Thread Andrey Repin via Cygwin
Greetings, Kaz Kylheku! > Hi all, > I'm reading an article on attacks that are evidently possible against some > Windows > programs in the area of command line parsing. See below. > Does the Cygwin run-time rely on GetCommandLineA to get the char-based command > line that is parsed into argv[]?

Re: env and PATH

2025-01-08 Thread Andrey Repin via Cygwin
Greetings, Federico Kircheis! >> When starting non-POSIX app, Cygwin will translate $PATH back to native >> format. >>> I am not aware of any rule in POSIX that requires or recommends some >>> transformations for environment variables, in that sense, any transformation >>> is "unexpected" or an ex

Re: env and PATH

2025-01-04 Thread Andrey Repin via Cygwin
Greetings, Federico Kircheis! > On 04/01/2025 02.41, Andrey Repin wrote: >> Greetings, Federico Kircheis! >> >> Hello to everyone, >> > >> I've noticed that env seems to handle the environment variable PATH in >> > >> a particular way >> > >> - >> >> cd /d; >> >> env -i PATH='C:\Windows;C

Re: zsh (oh-my-zsh) hangs on cygwin-3.5.5-1

2025-01-03 Thread Andrey Repin via Cygwin
Greetings, Daisuke Fujimura! Pardon my intervention, but I'd like to make an unrelated comment… >> Are any additional settings necessary? > - zsh is specified by the environment variable SHELL. > - HOME is a symbolic link. (`/home/myname` -> `/cygdrive/c/Users/myname`) I'd suggest using nsswitc

Re: env and PATH

2025-01-03 Thread Andrey Repin via Cygwin
Greetings, Federico Kircheis! > Hello to everyone, > I've noticed that env seems to handle the environment variable PATH in a > particular way > - >> cd /d; >> env -i PATH='C:\Windows;C:\Windows\system32;' >> /c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe > # in the powersh

Re: Modify Cygwin sshd to support login into user SYSTEM?

2025-01-03 Thread Andrey Repin via Cygwin
Greetings, Cedric Blancher! >> What problem are you solving? > 1. Replace PsExec, and only use Cygwin builtin tools Cygwin is a user-level library, don't use it to substitute system administration tools. Bad idea. Bad things will happen. > 2. Do global mounts, i.e. mount SMB filesystem for all

Re: fail: sshd

2025-01-03 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! > Check Windows SSHD is not running and disabled! Or moved to a different port. ( C:\ProgramData\ssh\sshd_config ) In some specific situations, you WILL need native SSH available, Cygwin one will not work for VS Code remote server f.e. -- With best regards,

Re: cygpath and unc paths

2024-12-16 Thread Andrey Repin via Cygwin
Greetings, Federico Kircheis! >>> 1) >>> root path, like C:\ , because for whatever reason \\?\C:\ is not valid, it >>> has to be a subfolder (and trying to trick it with \\?\C:\\ does not work >>> either). >> > In which scenario? \\?\C:\ is just the same as \??\C:\ in NT speak, and >> that's a p

Re: cygpath command no longer accepts -s (--short-name) switch

2024-11-15 Thread Andrey Repin via Cygwin
Greetings, Soren! > Hello users. I have a reasonably recently installed Cygwin that I've kept > updated with setup. I am just now seeing that the provided `cygpath` > command no longer works the way it ought to. Could someone(s) confirm or > deny this? And fix it, because it is an important facil

Re: After ca-certificates update /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is empty

2024-11-03 Thread Andrey Repin via Cygwin
Greetings, ASSI! > Andrey Repin via Cygwin writes: >> That was the first thing I tried. Then reinstalling. > Well, reinstalling should have helped: > --8<---cut here---start->8--- > # cygcheck -p ca-bundle.trust.crt > Found 3 matc

Re: After ca-certificates update /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is empty

2024-11-03 Thread Andrey Repin via Cygwin
Greetings, ASSI! > Andrey Repin via Cygwin writes: >> I've experieenced an issue with my setup, that showed that >> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt is empty after >> installing ca-certificates 2024.2.69-v8.0.401. >> Rolling back to v8.0.30

Re: Windows Server NFS, getfact not working on NFS

2024-10-27 Thread Andrey Repin via Cygwin
Greetings, Sam Edge via Cygwin! > On 27/10/2024 09:03, Andrey Repin via Cygwin wrote: >> It will only work inside Cygwin root tree, or on mounts with "acl" flag. > I beg to differ. I can read ACLs from a Linux Samba server without > requiring an explicit 'acl

Re: Windows Server NFS, getfact not working on NFS

2024-10-27 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > Greetings! > If I mount a NFS filesystem from a Windows NFS4.1 server (Windows > Server 2022) on Windows 10, then getfacl does not work: > cd /cygdrive/n/nfsshare1 > touch testfile > getfacl testfile > getfact: testfile: Not supported It will return "not supported" to

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

2024-10-24 Thread Andrey Repin via Cygwin
Greetings, Ilya Basin! > 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 partiti

Re: Help understanding why a mount command is not working and how to fix it

2024-09-10 Thread Andrey Repin via Cygwin
Greetings, Eliot Moss! > Dear Cygwiners -- > For convenience, I would like to mount my OneDrive folder under /cygdrive/o. > I put this line in my /etc/fstab: > c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0 /cygdrive is a system entry point. Manually placing any

Re: A/B install?

2024-08-31 Thread Andrey Repin via Cygwin
Greetings, Jason Pyeron! > Sad to admit, but I have not updated Cygwin in a very long time. > It takes a very long (more than an hour) time to update Cygwin due to the > amount of items installed. I have not had the luxury of nor running Cygwin > processes in that update time. > I have been won

Re: How to repair the symlinks in a copied cygwin64 tree

2024-08-09 Thread Andrey Repin via Cygwin
Greetings, David Karr! > At my work, I had to have my laptop reimagined for various reasons. I had > them save my cygwin64 tree to external storage first. I now have the laptop > back, and I copied the entire tree back in, but now I realize I should have > done this differently, and I'm wondering

Re: Why cygwin's history output is prefixed by two spaces?

2024-08-02 Thread Andrey Repin via Cygwin
Greetings, Sophoklis Goumas! > This is because I'm trying to parse history output and I foolishly set > FS (field separator) to be two consecutive spaces '\ \ '. history | while read -r id cmd; do echo "$cmd"; done > I think I'll pass this to sed first and maybe replace with an unlikely > charac

Re: Changing Default SSH Directory to E:\ in Cygwin

2024-07-24 Thread Andrey Repin via Cygwin
Greetings, Adrian Breten! > Hello, > I am seeking assistance with configuring Cygwin to change the default > directory when I SSH into my Windows machine. > Currently, I have Cygwin installed on a Windows server 2016 machine on > E:\Cygwin64. When I SSH into this machine, the default directory i

Re: Parse output of "net use", but language varies - force language for "net use"?

2024-07-21 Thread Andrey Repin via Cygwin
Greetings, Thomas Wolff! > Am 21.07.2024 um 01:54 schrieb Takashi Yano via Cygwin: >> On Sat, 20 Jul 2024 15:44:17 +0200 >> Mark Liam Brown wrote: >>> I am trying to parse the output of "net use" in a bash script, but hit >>> a roadblock: >>> The output of "net use" changes with the language of th

Re: Parse output of "net use", but language varies - force language for "net use"?

2024-07-21 Thread Andrey Repin via Cygwin
Greetings, Mark Liam Brown! > I am trying to parse the output of "net use" in a bash script, but hit > a roadblock: > The output of "net use" changes with the language of the system > (English, Danish, French, ...), so parsing becomes nearly impossible > How can I force the language used by "net

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

2024-07-21 Thread Andrey Repin via Cygwin
Greetings, ilya Basin! > For several years I had this in my /etc/fstab.d/$USER > C: /cygdrive/c none binary,noacl,posix=0,user 0 0 Unless you have a global /cygdrive override set to noacl as well, I have my reservation about configuration. > I switched from Cygwin x86 to x64 recently and I

Re: crontab: no changes made to crontab

2024-07-07 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! > On 2024-07-06 04:50, Andrey Repin via Cygwin wrote: >> I'm trying to install a new cron job, and the thing fails claiming that it >> didn't see the edits I made to the file. >>>> # echo "USER=$USER" | crontab -

crontab: no changes made to crontab

2024-07-06 Thread Andrey Repin via Cygwin
Greetings, All! I'm trying to install a new cron job, and the thing fails claiming that it didn't see the edits I made to the file. >> # echo "USER=$USER" | crontab - >> >> # crontab -l >> # DO NOT EDIT THIS FILE - edit the master and reinstall. >> # (- installed on Sat Jul 6 13:35:43 2024) >> #

Re: ssh-add -l hangs under cygwin test 3.6.0-0.139.g...

2024-06-30 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! >> I have experienced otherwise inexplicable hangs of ssh that have been >> resolved >> by killing ssh-agent and restarting it. This doesn't happen very often, so >> it is >> usually mystifying when it does occur -- until I remember. > I have *NEVER* had *ANY

Re: No Native Language Support in browser started from shell prompt

2024-06-24 Thread Andrey Repin via Cygwin
Greetings, Dr Bean! >> > >> > Am 14.06.2024 um 09:37 schrieb Dr Bean via Cygwin: >> > > With qutebrowser and Microsoft Edge started from a cygwin shell prompt, >> > > there is no Native Language Support. >> > > >> > > Started from a cmd prompt, >> > > >> > > "c:\Program Files\qutebrowser\qutebro

Re: Cygwin/X as Shell replacement?

2024-06-19 Thread Andrey Repin via Cygwin
Greetings, Jens Staal! > Dear all, > I recently read the Wikipedia article on alternative shells in Windows. > https://en.wikipedia.org/w/index.php?title=List_of_alternative_shells_for_Windows > And it got me wondering: can you start a DE or WM running under Cygwin/X as > an alternative Windows

Re: Cygwin outputting message to stderr on dofork EAGAIN failure even when Python exception is caught and handled

2024-06-17 Thread Andrey Repin via Cygwin
Greetings, Nicholas Williams! > We have a Python (installed and run through Cygwin) process running on > Windows Server 2022 that was very, very occasionally failing when > subprocess.check_output was called: > 0 [main] python3 28481 dofork: child -1 - forked process 16856 died > unexpectedly, r

Re: Request for support: some web pages on your site not responding

2024-06-04 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! > On 2024-06-03 21:14, Isabella Parker via Cygwin wrote: >> I've encountered difficulties accessing specific resources on your website >> cygwin.org as some pages fail to load. Would you mind providing me with the >> contact details of the responsible person to

Re: WinSG Re: [Ms-nfs41-client-devel] ANN: NFSv4.1 filesystem client Windows driver binaries for Windows 10/11 for testing, 2024-05-28 ...

2024-05-31 Thread Andrey Repin via Cygwin
Greetings, Bill Stewart! >> - WinSG should be installed in C:\Windows\system32\ alongside cmd.exe > Not IMHO. Agreed. If you want a single tool available in command line, use AppPaths registry entry. >> - Native Windows utilities use /? for help, not --help > This is really only a loosely foll

Re: Cygwin setup-x86_64.exe cannot install into UNC paths...

2024-05-27 Thread Andrey Repin via Cygwin
Greetings, Roland Mainz! > I tried to install Cygwin on a network share using the UNC path name Very. Bad. Idea. > (e.g. \\derfwnb4966_ipv4@2049\nfs4\storagetek\cygwintest001\), but got > this response: "The install directory must be absolute, with both a > drive letter and leading slash, like C

Re: Installing Cygwin as normal user in nonstandard location?

2024-05-27 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > On Sun, May 26, 2024 at 7:35 PM Andrey Repin wrote: >> >> Greetings, Martin Wege! >> >> >> Can Cygwin be installed as a normal user (without Admin rights) in a >> >> > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? >> >> > >> >> > Also, can this be don

Re: Installing Cygwin as normal user in nonstandard location?

2024-05-26 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! >> Can Cygwin be installed as a normal user (without Admin rights) in a >> > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? >> > >> > Also, can this be done for more than one Cygwin version, e.g. I'd like >> > to test multiple Cygwin versions in parallel.

Re: Installing Cygwin as normal user in nonstandard location?

2024-05-25 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > Can Cygwin be installed as a normal user (without Admin rights) in a > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? Yes, and there's no such thing as "standard location". > Also, can this be done for more than one Cygwin version, e.g. I'd like > to

Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-04-26 Thread Andrey Repin via Cygwin
Greetings, Dan Shelton! >> Then just change /etc/nsswitch.conf to enumerate "local" as well >> and be done with it. > That file is read-only for some customer installations, and we are not > allowed to touch it. Then tell the system administrator to touch it. >> >> You can even go so far as to

Re: Issue with cygdrive mount, native symlinks, and noacl option

2024-04-26 Thread Andrey Repin via Cygwin
Greetings, Christopher Layne! > I noticed recently while attempting to rsync directories from one drive to > another that I was getting the familiar "NULL SID", "incorrectly ordered", > etc. type ownership issues on the destination even though I use noacl for > cygdrive mounts (I'm aware of the PO

Re: See repeated /usr/bin in my path

2024-04-17 Thread Andrey Repin via Cygwin
Greetings, J M! > I think that is a bug, in my Windows environment path I have this: > C:\cygwin64\bin > Then for some mystery change this to /usr/bin, instead to delete. > You can file an issue? It's not a bug, it's how Cygwin works. If you want to have Cygwin in your system PATH, you'll have t

Re: Additional odd behavior after my upgrade to the latest CYGWIN64 version

2024-03-18 Thread Andrey Repin via Cygwin
Greetings, Michael Goldshteyn! > Cygwin handles (filename) case insensitivity in a very weird way at the > Windows command prompt: > -- > c:\Users\Michael>set CYGWIN= > c:\Users\Michael>printf "%q " 'a' 'A' "a" "A" a A > a A a A a A > REM OK, so far so good, but, now:

Re: Convert a file descriptor from Cygwin openat() to Win32 file HANDLE?

2024-03-04 Thread Andrey Repin via Cygwin
Greetings, Cedric Blancher! > How can I convert a file descriptor from Cygwin openat() to Win32 file HANDLE? In general, you should not attempt to do such thing. If you have a very specific idea in mind, it would be best to describe, what you are trying to achieve, so community could provide a mo

Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-29 Thread Andrey Repin via Cygwin
Greetings, Bill Stewart! > On Tue, Feb 27, 2024 at 7:42 AM Cedric Blancher wrote: > How can I get the group SID for a file in cmd.exe (powershell is not an >> option)? >> > Why is PowerShell not an option? > (I ask because PowerShell has been a built-in part of the Windows since > Windows 7--th

Re: Howto to backup and restore windows ACL?

2024-02-29 Thread Andrey Repin via Cygwin
Greetings, matth...@gmx.li! > Hello, > Is it possible to save and restore the windows acl? Yes, but it is not a question for this list. > My issue is that I can backup my files with rsync to my Linux Server. > But if I restore it the ownership and access rights are changed. > Unfortunately I'm

Re: Wrong NTFS permissions

2024-01-24 Thread Andrey Repin via Cygwin
Greetings, Vincent Rivière! > On 24/01/2024 at 04:14, Marco Atzeri via Cygwin wrote: >>> $ cd /cygdrive/h/ >> > what is H ? > It is H:, a local NTFS partition. >> Use csih package for more info on your remote package > $ /usr/lib/csih/getVolInfo /cygdrive/h > Device Type: 0x07 > Charact

Re: mintty ^H weirdness with ssh to one specific Debian 11 system

2024-01-18 Thread Andrey Repin via Cygwin
Greetings, Jim Garrison via Cygwin! > Details > I have mintty set to term type "mintty" Don't do that. $TERM is not a random made-up string. It should be supported by appropriate terminfo(5) entry on the system. If an entry is not found, it will fall back to some other entry, which could be 'vt1

Re: Capturing a Cygwin instance from another PC

2024-01-14 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! >> That will lose the information about which packages were installed by >> explicit user request vs. installed as a dependency. > What that means is the complete information is only available in: > /etc/setup/installed.db > which has header: >

Re: How to map a NAS drive in /etc/fstab that is of type

2024-01-08 Thread Andrey Repin via Cygwin
Greetings, /dev /local/ca! > What would an entry in */etc/fstab* look like on Windows to map a nas > mapped drive N: I strongly suggest using UNC paths for network mapping. > When provisioning the drives, I selected file system type: btrfs Unrelated to the original question. > --- > I am on Wi

Re: Firewall ports for Cygwin setup.exe to access mirror.kernel.org?

2024-01-07 Thread Andrey Repin via Cygwin
Greetings, Dan Shelton! > Can someone provide a list of TCP ports which must be open in the > outgoing firewall settings, so Cygwin setup.exe can fetch data from > mirror.kernel.org? Standard HTTP ports. 80/443 -- With best regards, Andrey Repin Sunday, January 7, 2024 23:20:38 Sorry for my t

Re: [EXTERNAL] mkdir create directory with permissions in wrong order

2023-12-23 Thread Andrey Repin via Cygwin
Greetings, matth...@gmx.li! Please no top-posting in this list. > Am Freitag, dem 22.12.2023 um 22:11 + schrieb Lavrentiev, Anton > (NIH/NLM/NCBI) [C]: >> > Thanks for any hint >> >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files >> > How can I set the permissions as promised? Pro

Re: Custom package repository in addition to default Cygwin packages?

2023-12-22 Thread Andrey Repin via Cygwin
Greetings, marco atzeri! >> Can Cygwin setup.exe be modified to support more than one package >> repository, e.g. first the default Cygwin package repro, and then a >> company package repro (e.g. fr.pasteur.cygwin.packages ?). > no need to change. It is already feasible as you can specify multipl

Re: Cygwin is not passing arguments to Windows apps

2023-12-22 Thread Andrey Repin via Cygwin
Greetings, Karl Crary! > I have stumbled on to a fix, but I am still puzzled. The problem arises > when either of the following lines appears in my /etc/fstab: > c: /c ntfs binary,noacl,cygexec,user 0 0 > c: /home ntfs binary,noacl,cygexec,user 0 0 Note that C: is not the same as C:\ > I've tak

cygwin@cygwin.com

2023-12-22 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > The root cause is IMO the extra Win32 syscalls (>= 3 per file lookup, > compared to 1 on Linux) to lookup the *.lnk and *.exe.lnk files on > filesystems which have native link support (NTFS, ReFS, SMBFS, NFS). Except you require elevation to actually create symlinks. Or

Re: Cygwin api to punch a hole into a file?

2023-12-04 Thread Andrey Repin via Cygwin
Greetings, Corinna Vinschen via Cygwin! > I don't know how Windows stores short files, By Windows I Think you did mean NTFS. Then yes, file data for certain short values is stored directly in $MFT. This is not specifically file contents, and even if a file content is just 1 byte, not necessarily

Re: cmd.exe clone with UNC support?

2023-11-30 Thread Andrey Repin via Cygwin
Greetings, Risto Laitinen! >> cmd.exe already supports UNC paths > You cannot cd to an UNC path. You can in bash. And then run cmd /C …whatever… …given sufficient system configuration (https://www.google.com/search?q=DisableUNCCheck) > On Thu, Nov 30, 2023 at 9:59 PM Bill Stewart via Cygwin >

Re: Cygwin mount limited to 64 mounts, even for UNC paths?

2023-11-30 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > Cygwin mount(1) is (per docs) limited to 64 mounts. Why was that > limitation chosen, and does it apply even if I create bind mounts to > UNC paths (not DOS letters)? DOS letters might be restricted by the > ASCII A-Z, but UNC paths are unlimited. More interesting quest

Re: Set localisation locale of Windows netstat?

2023-11-24 Thread Andrey Repin via Cygwin
Greetings, Cedric Blancher! > How can I set the localisation locale of Windows netstat cmd from > Cygwin? LC_ALL=C does not help, a French or German Windows will use > French or German language still Use "chcp 65001" in your .bashrc or an equivalent file. Many windows console tools will resort to

Re: Cygwin tool to differ junctions from soft links?

2023-11-16 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > Does Cygwin have a command line tool (Scriptable!) which can be used > to differ between soft links and Windows junctions? It would be easier to help you, if you specify the purpose of your request. I.e. what you want to achieve with such tool. -- With best regards, A

Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll - cyserver squatting it...

2023-11-15 Thread Andrey Repin via Cygwin
Greetings, Mainz, Roland! > Hi! > > The Cygwin installer "setup-x86_64.exe" has problems updating cygwin1.dll > when cygserver is running: You should stop ALL Cygwin processes before starting setup.exe. This is documented. > snip > Unable to extract /usr/bin/cygwin1.dll -- err

Re: Messages not delivered to the cygwin@ mailing list

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Ernie Rael! > On 23/09/15 1:59 PM, Andrey Repin via Cygwin wrote: >> Greetings, cygwin-ow...@cygwin.com! >> >> It is about 4 months since I lost ability to post to the many mailing lists >> from my primary address. Messages are seemingly coming into a blac

Re: Cant install Cygwin Virt-manager that asks for library that asks for python2

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Jānis Ķengurs! >> On 2023-10-31 16:58, Jānis Ķengurs via Cygwin wrote: >> > I wanted to use some KVM or Qemu or something on linux and windows that >> can >> > fast open iso files for testing >> > Downloaded on Windows 10 >> >> You can mount ISOs directly on linux with the loop option

Re: scp and ssh 'cat' stalls at 64k bytes

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Chris Roehrig! > On 2023-06-23 18:26, Dan Harkless via Cygwin wrote: >> On 6/23/2023 5:19 PM, Chris Roehrig via Cygwin wrote: >>> No worries; I imagine most people don't run sshd on cygwin. >> >> Hmm, I'd generally think the opposite, at least for users coming from > more >> UNIXey / L

Re: OpenSSL failure in Cygwin: SSL_set_tlsext_host_name returns 1 (SSL_TLSEXT_ERR_ALERT_WARNING)

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Yuri! > I've built the proxytunnel project in Cygwin > (https://github.com/proxytunnel/proxytunnel). > It is usually used to tunnel ssh through https using the https CONNECT > command. > The command "proxytunnel --no-check-certificate -E -p > {https-proxy-host}:{https-proxy-port} -d

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Bruce Visscher! > As a matter of fact, perhaps I don't need winpty anymore. I used to > have to prefix some windows console apps with this but that doesn't > seem to be necessary now. There have been some progress on Microsoft side regarding console behavior in general, yes. But in g

Re: Getting return code "127" after execution of program

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, rajesh kesavan! > We are Trying to execute a program like ./sample.exe on 64 bit Cygwin. This > executable is built with CMake on Cygwin 64 bit. > The Program is not throwing any error or success details. it simply comes > out from the running screen without any error and success states

Re: Slow Cygwin commands even with Cygserver

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Derek Pagel! > I've been having intermittent slowness with Cygwin commands even after > installing Cygserver. It has helped reduce the frequency of occurrences of > slowness, but it hasn't gotten rid of them completely. I recently had a > 'mv.exe' that was slow, so I ran a few commands

Re: Another confusing error from someone else's Cygwin setup

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, David Karr! > I'm seeing a problem with someone else's Cygwin setup, sort of similar to a > problem I asked about a couple of weeks ago, in that it's a problem with > the same user, but seemingly a completely different problem. > He is using a Bash script that I wrote, and he gets a se

Re: Find free drive letter in Cygwin?

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Martin Wege! > On Mon, Aug 7, 2023 at 8:43 PM Brian Inglis wrote: >> >> On 2023-08-07 10:52, Martin Wege via Cygwin wrote: >> > What is the official cygwin way to find a free drive letter, which can >> > be used in a script to mount a drive? >> >> Just use the Windows UNC network path

Re: /usr/bin/realpath cannot handle UNC paths ?

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Mainz, Roland! > > We're trying to use UNC paths (e.g. //server/home/xyz/), but some of our > scripts fail when /usr/bin/realpath is used. > Example: > snip > $ uname -a > CYGWIN_NT-10.0-19045 WINGRENDEL01 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 > Cygwin > $ realpa

Re: git 2.39.0 change from relative to absolute submodule paths

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Fuchs, Thorsten! > After submodule update with git 2.39.0 some of our sub modules got their > worktree settings in the .git/modules//config fil set as absolute > paths. See the attached config files as example. It seems that if the path > is changed from relative. Not all submodules are

Re: Most git executables are hard links to git.exe?

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Jim Garrison via Cygwin! > On 07/21/23 14:52, Brian Inglis wrote: >> On 2023-07-21 14:59, Jim Garrison via Cygwin wrote: >>> Git comes with over 100 executables, mostly in /usr/libexec/git-core, >>> that all appear to be *hard* links to /bin/git, in both Cygwin and >>> Windows. The Wind

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-20 Thread Andrey Repin via Cygwin
Greetings, Derek Pagel! > The icalcs command doesn’t work on either and I haven’t been able to get it > to work elsewhere either. > D:\lsenv\law\lsapps\edi\work>icacls "`cygpath -m interchange.20230418091901" > `cygpath -m interchange.20230418091901: The system cannot find the file > specified

Re: Can not stat file with utf char U+F020

2023-04-17 Thread Andrey Repin via Cygwin
Greetings, Corinna Vinschen via Cygwin! > On Apr 17 07:36, Gionatan Danti via Cygwin wrote: >> Il 2023-04-14 23:01 Gionatan Danti via Cygwin ha scritto: >> > Il 2023-04-14 22:25 Corinna Vinschen via Cygwin ha scritto: >> > > We do that. You're just stumbling over tha fact that U+F020 is also >> >

Re: setup 2.925 release candidate - please test

2023-04-15 Thread Andrey Repin via Cygwin
Greetings, Marco Atzeri! > On 14.04.2023 17:29, Jon Turney via Cygwin wrote: >> > A new setup release candidate is available at: >> >  https://cygwin.com/setup/setup-2.926.x86_64.exe (64 bit version) >>  https://cygwin.com/setup/setup-2.926.x86.exe    (32 bit version) >> > just as info, > Avira

Re: have cygwin setup.exe signed and/or in the MS store

2023-04-12 Thread Andrey Repin via Cygwin
Greetings, Philippe Cerfon! > Hey there. > I know you provide OpenPGP signatures for verification (which is good, > and should be kept), but would it perhaps make sense to have setup.exe > signed (in the sense of: by some MS trusted certificate) and/or in the > MS store (though I guess that might

Re: Changing user home to overlap Windows user home possible? Or a bad idea?

2023-04-11 Thread Andrey Repin via Cygwin
Greetings, Thomas Schweikle! > Am Sa., 08.Apr..2023 um 10:30:47 schrieb Andrey Repin: >> Greetings, Thomas Schweikle! >> >> Is it possible to have the same home for Windows and cygwin? >> > See /etc/nsswitch.conf and >> > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch >> >> Us

Re: issue when piping from a windows program

2023-04-11 Thread Andrey Repin via Cygwin
Greetings, Leonid Mironov! > I am trying to feed the output of wmic.exe - a windows console program, to > cygwin bash script. > wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix > to convert it. > The problem is that when I write wmic.exe output to a file and then use

Re: bash shell script: recently running, now failing

2023-04-08 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! > On 2023-04-06 06:21, Andrey Repin via Cygwin wrote: >>> I have a "hash bang" bash shell script i.e. first line >>> #! /bin/sh >>> or equivalently >>> #! /bin/bash >> By default, sh is bash in base Cygwin

Re: Changing user home to overlap Windows user home possible? Or a bad idea?

2023-04-08 Thread Andrey Repin via Cygwin
Greetings, Thomas Schweikle! > Is it possible to have the same home for Windows and cygwin? See /etc/nsswitch.conf and https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch > Using "C:\Users\" for Cygwin home setting mount points for users? I don't get this question. Can you pleas

Re: bash shell script: recently running, now failing

2023-04-06 Thread Andrey Repin via Cygwin
Greetings, Fergus Daly! > I have a "hash bang" bash shell script i.e. first line > #! /bin/sh > or equivalently > #! /bin/bash By default, sh is bash in base Cygwin installation. > Q3 - at 1/8 the size of bash and sh, I am not at all sure of the role and > reach of dash. > Should the edit (dash

Re: Getting Error while connect to DB2 from Cygwin 64-bit

2023-04-04 Thread Andrey Repin via Cygwin
Greetings, rajesh kesavan! > I'm getting below errors while trying to connect IBM DB2 from 64-bit > Cygwin. Please find the below mentioned details. > 1)Trying to compile the program using DB2_LIBRARY="C:/Program > Files/IBM/SQLLIB/lib/db2api.lib" on 64-bit Cygwin. Is this a Cygwin or native tar

Re: How to remove "Priveleged Server" as default UAC prompt?

2023-03-29 Thread Andrey Repin via Cygwin
Greetings, WyntrHeart! > I installed the Cron daemon running under the cyg_server account, Why? Should be installed under LocalSystem user. > and now whenever Windows 10 gives me a UAC prompt it defaults to asking for > the > password for "privileged server" and I have to manually click to chan

Re: cygwin gdb: issue with non-posix style absolute paths

2023-03-04 Thread Andrey Repin via Cygwin
Greetings, Holger Machens! > when starting gdb (v10 or higher) with a windows absolute path to an > executable, it runs into issues with paths in several cases, reporting the > following error: > BFD: reopening /cygdrive/x/project/bin/X:\project\bin\simple.test.exe: No > such file or directory

Re: Nano fails to open file "~/.bashrc".

2023-03-04 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! > $ which nano > /cygdrive/c/Program Files/Git/usr/bin/nano That explains it. Cygwin does not install nano by default. Fire up your setup.exe and install it, that will fix your issue. As for the future, I suggest to patch your ~/.profile and exclude unnecessary/conflicti

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! Please avoid top-posting in this list. > On 03.03.2023 15:47, Andrey Repin wrote: >> Greetings, Kirill Frolov! >> >>> When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does >>> not exist ] error. >> Do you run it from bash prompt or from CMD prompt?

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! > When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does > not exist ] error. Do you run it from bash prompt or from CMD prompt? > The file opens with cat ~/.bashrc Can you please show us the output of getent passwd "$USER"; mount; cat /etc/nsswit

Re: Changing the python sqlite3 version to the latest

2023-02-15 Thread Andrey Repin via Cygwin
Greetings, Jose Isaias Cabrera! > On Wednesday, February 15, 2023 10:55 AM, Andrey Repin  expressed: >> > -- untared the snapshot >> > $ tar xvf sqlite-snapshot-202302131932.tar.gz >> >> > -- cd to the untared directory >> > $ cd sqlite-snapshot-202302131932 >> >> > $ ./configure --prefix=/usr

Re: [ANNOUNCEMENT] Updated: dash 0.5.12-2

2023-02-15 Thread Andrey Repin via Cygwin
Greetings, Corinna Vinschen via Cygwin! > On Feb 15 14:52, Corinna Vinschen via Cygwin wrote: >> Hi Brian, >> [...] >> The currently building cygwin test release 3.5.0-0.174.gd6d4436145b8 >> contains the new code. Would you mind to build a dash for testing so we >> can see if and how it works? >

Re: Changing the python sqlite3 version to the latest

2023-02-15 Thread Andrey Repin via Cygwin
Greetings, Jose Isaias Cabrera! > In case anyone needs the answer, These steps worked for me: > -- Downloaded the Pre-release Snapshots > $ wget https://sqlite.org/snapshot/sqlite-snapshot-202302131932.tar.gz > -- untared the snapshot > $ tar xvf sqlite-snapshot-202302131932.tar.gz > -- cd to t

  1   2   >