Re: Wild card to address drives
On 2019-07-18 02:03, Fergus Daly wrote: > I have > none / cygdrive binary 0 0 > as the only line in the file /etc/fstab to allow for example > $ ls /h/config.sys > instead of the long-hand > $ ls /cygdrive/h/config.sys > In Linux I can type something like > ls /?/ -Ax > as a wild card to address ALL drives, but this does not work in Cygwin. > Is there a wild card syntax that would? Should work - I tried that mapping for a while, but found it interfered with asking Windows utilities for help e.g. cmd /? had to be cmd /\?: $ ls -d /?/\$RECYCLE.BIN '/c/$RECYCLE.BIN' '/d/$RECYCLE.BIN' '/g/$RECYCLE.BIN' $ ls -d /proc/cygdrive/?/\$RECYCLE.BIN '/proc/cygdrive/c/$RECYCLE.BIN' '/proc/cygdrive/d/$RECYCLE.BIN' '/proc/cygdrive/g/$RECYCLE.BIN' $ cmd /c ver Microsoft Windows [Version 10.0.17763.615] $ uname -srvmo CYGWIN_NT-10.0 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin What does mtab show: $ head /etc/mtab C:/cygwin64/bin /usr/bin ntfs binary,auto 1 1 C:/cygwin64/lib /usr/lib ntfs binary,auto 1 1 C:/cygwin64 / ntfs binary,auto 1 1 C: /c ntfs binary,posix=0,user,noumount,auto 1 1 D: /d ntfs binary,posix=0,user,noumount,auto 1 1 G: /g ntfs binary,posix=0,user,noumount,auto 1 1 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problems seeing/mounting partitions from ssh
On Thu, Jul 18, 2019 at 5:29 PM Erik Soderquist wrote: > You may be able to work around this by adding the subst command to > your .profile, but should not expect subst commands from one user > session to be visible in another user session. I just tested, and yes, executing the subst commands within the ssh session does work. -- Erik -- "I do not think any of us are truly sane, Caleb. Not even you. Courage is not sanity. Being willing to die for someone else is not sanity." ... "Love is not sane, nor is faith." ... "If sanity lacks those things, Caleb, I want no part of it." -- Alexandria Terri in "Weaving the Wyvern" by Alexis Desiree Thorne -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problems seeing/mounting partitions from ssh
On Thu, Jul 18, 2019 at 5:04 PM Henry S. Thompson wrote: > > Achim Gratz writes: > > > Henry S. Thompson writes: > >> But if I come in to this machine via ssh (public key or password), the > >> virtual partitions are lost: > > > > That's how Windows is designed. If you have no desktop session, then > > none of the associated setups are triggered. > > Not to dismiss your point, but this happens even when there _is_ a > desktop session. Indeed the material showing the problem in my previous > post came from doing The subst command creates an illusion that exists only for the user session (usually a desktop session) it is executed in. The ssh session has no desktop session at all, and is its own independent user session. You may be able to work around this by adding the subst command to your .profile, but should not expect subst commands from one user session to be visible in another user session. -- Erik -- "I do not think any of us are truly sane, Caleb. Not even you. Courage is not sanity. Being willing to die for someone else is not sanity." ... "Love is not sane, nor is faith." ... "If sanity lacks those things, Caleb, I want no part of it." -- Alexandria Terri in "Weaving the Wyvern" by Alexis Desiree Thorne -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problems seeing/mounting partitions from ssh
Achim Gratz writes: > Henry S. Thompson writes: >> But if I come in to this machine via ssh (public key or password), the >> virtual partitions are lost: > > That's how Windows is designed. If you have no desktop session, then > none of the associated setups are triggered. Not to dismiss your point, but this happens even when there _is_ a desktop session. Indeed the material showing the problem in my previous post came from doing > [show working stuff from desktop session] > ssh localhost > [show failing stuff from ssh session] That's what really baffled me. ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: h...@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Renaming a socket file adds ".lnk" to the name
The attached test case creates a socket file /tmp/mysocket and tries to rename it to /tmp/newsocket. But the new name is actually /tmp/newsocket.lnk: $ gcc -o rename_socket rename_socket.c $ ./rename_socket.exe $ ls -F /tmp/newsocket* /tmp/newsocket.lnk= I think I have a simple fix, which I'll send to cygwin-patches shortly. Ken #include #include #include #include #include #include int main () { const char *old = "/tmp/mysocket"; const char *new = "/tmp/newsocket"; const char *bad = "/tmp/newsocket.lnk"; struct sockaddr_un addr; int fd; if (unlink (old) == -1 && errno != ENOENT) { perror ("unlink"); exit (1); } if (unlink (new) == -1 && errno != ENOENT) { perror ("unlink"); exit (1); } if (unlink (bad) == -1 && errno != ENOENT) { perror ("unlink"); exit (1); } memset (&addr, 0, sizeof (struct sockaddr_un)); addr.sun_family = AF_UNIX; strncpy (addr.sun_path, old, sizeof (addr.sun_path) - 1); fd = socket (AF_UNIX, SOCK_STREAM, 0); if (fd == -1) { perror ("socket"); exit (1); } if (bind (fd, (struct sockaddr *) &addr, sizeof (struct sockaddr_un)) == -1) { perror ("bind"); exit (1); } if (rename (old, new) == -1) { perror ("rename"); exit (1); } exit (0); } -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problems seeing/mounting partitions from ssh
Henry S. Thompson writes: > But if I come in to this machine via ssh (public key or password), the > virtual partitions are lost: That's how Windows is designed. If you have no desktop session, then none of the associated setups are triggered. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Is the Mercurial package still maintained?
On 7/18/2019 2:10 PM, Ti Strga wrote: > Hi. > > Upstream is at v5.0.2. The cygwin repo has been at 4.3.2 for almost two > years now, missing not only a lot of features but also the security fixes > in 4.7.2 and 4.9. > > Is a new package blocked waiting on other support to be completed? Or is > it simply orphaned and waiting for a new maintainer or NMU? The maintainer is Jari Aalto. I don't know if he reads the list, so I'm adding him to the CC. Ken
Is the Mercurial package still maintained?
Hi. Upstream is at v5.0.2. The cygwin repo has been at 4.3.2 for almost two years now, missing not only a lot of features but also the security fixes in 4.7.2 and 4.9. Is a new package blocked waiting on other support to be completed? Or is it simply orphaned and waiting for a new maintainer or NMU? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Wild card to address drives
Greetings, Hans-Bernhard Bröker! > Am 18.07.2019 um 10:03 schrieb Fergus Daly: >> I have >> none / cygdrive binary 0 0 >> as the only line in the file /etc/fstab to allow for example >> $ ls /h/config.sys >> instead of the long-hand >> $ ls /cygdrive/h/config.sys > And that's precisely your problem. You've now overlaid two mount points > onto /: the cygdrive tree, and the normal Cygwin root mount. I understand that, but I don't understand the /proc/cygdrive behavior in such case. My expectation was that /proc/cygdrive/ would only hold Windows drives. But... $ ls -l /proc/cygdrive lrwxrwxrwx 1 anrdaemon None 0 июл 18 20:17 /proc/cygdrive -> / Why? > Without this, your command would have worked just fine. >> In Linux I can type something like >> ls /?/ -Ax >> as a wild card to address ALL drives, > Not really, as there is no such thing as "drives" on Linux. The above > will list all directories under / that have single letters as their name > --- whether those be mounted filesystems, or ordinary directories. -- With best regards, Andrey Repin Thursday, July 18, 2019 20:15:38 Sorry for my terrible english...
Re: Wild card to address drives
Am 18.07.2019 um 10:03 schrieb Fergus Daly: > I have > none / cygdrive binary 0 0 > as the only line in the file /etc/fstab to allow for example > $ ls /h/config.sys > instead of the long-hand > $ ls /cygdrive/h/config.sys And that's precisely your problem. You've now overlaid two mount points onto /: the cygdrive tree, and the normal Cygwin root mount. Without this, your command would have worked just fine. > In Linux I can type something like > ls /?/ -Ax > as a wild card to address ALL drives, Not really, as there is no such thing as "drives" on Linux. The above will list all directories under / that have single letters as their name --- whether those be mounted filesystems, or ordinary directories. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problems seeing/mounting partitions from ssh
I have one real (c:) and three virtual (d:, e:, f:) partitions on my Windows 10 box The virtual partitions are created at login by Windows tasks using the 'subst' command. With an empty /etc/fstab, at first this all appears to work fine: > mount C:/C64/bin on /usr/bin type ntfs (binary,auto) C:/C64/lib on /usr/lib type ntfs (binary,auto) C:/C64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) > mount -m none /cygdrive cygdrive binary,posix=0,user 0 0 > ls /cygdrive c/ d/ e/ f/ > ls /cygdrive/f | wc -l 31 But if I come in to this machine via ssh (public key or password), the virtual partitions are lost: > mount C:/C64/bin on /usr/bin type ntfs (binary,auto) C:/C64/lib on /usr/lib type ntfs (binary,auto) C:/C64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) > ls /cygdrive c/ The problem seems to arise because the subst commands aren't being run: > cmd /c subst [nothing] although they are Triggered by "At log on of [me]". Checking the Task Scheduler indeed shows them run at my original Windows login, but not when I ssh in... It appears that ssh login is not a Windows login -- what am I missing? ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: h...@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Wild card to address drives
I have none / cygdrive binary 0 0 as the only line in the file /etc/fstab to allow for example $ ls /h/config.sys instead of the long-hand $ ls /cygdrive/h/config.sys In Linux I can type something like ls /?/ -Ax as a wild card to address ALL drives, but this does not work in Cygwin. Is there a wild card syntax that would? Thank you. Fergus -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple