Trouble running ssh-host-config
When I right-click cygwin.bat and run as Administrator, ssh-host-config -y gets the following errors: % ssh-host-config -y *** Warning: Running this script typically requires administrator privileges! *** Warning: However, it seems your account does not have these privileges. *** Warning: Here's the list of groups in your user token: None Users INTERACTIVE CONSOLE LOGON Authenticated Users This Organization Local account LOCAL NTLM Authentication Medium Mandatory Level *** Warning: This usually means you're running this script from a non-admin *** Warning: desktop session, or in a non-elevated shell under UAC control. *** Warning: Make sure you have the appropriate privileges right now, *** Warning: otherwise parts of this script will probably fail! *** Query: Are you sure you want to continue? (Say "no" if you're not sure *** Query: you have the required privileges) (yes/no) yes *** Warning: Can't set permissions on /var/empty! *** Info: Generating missing SSH host keys *** Warning: Can't create /etc/ssh/ssh_config because default version could not be found. *** Warning: Check '/etc/ssh/defaults' *** Warning: Can't create /etc/ssh/sshd_config because default version could not be found. *** Warning: Check '/etc/ssh/defaults' *** Info: Updating /etc/ssh/sshd_config file *** Query: Do you want to install sshd as a service? *** Query: (Say "no" if it is already installed as a service) (yes/no) yes *** Query: Enter the value of CYGWIN for the daemon: [] *** Info: On Windows Server 2003, Windows Vista, and above, the *** Info: SYSTEM account cannot setuid to other users -- a capability *** Info: sshd requires. You need to have or to create a privileged *** Info: account. This script will help you do so. *** Info: It's not possible to use the LocalSystem account for services *** Info: that can change the user id without an explicit password *** Info: (such as passwordless logins [e.g. public key authentication] *** Info: via sshd) when having to create the user token from scratch. *** Info: For more information on this requirement, see *** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1 *** Info: If you want to enable that functionality, it's required to create *** Info: a new account with special privileges (unless such an account *** Info: already exists). This account is then used to run these special *** Info: servers. *** Info: Note that creating a new user requires that the current account *** Info: have Administrator privileges itself. *** Info: The following privileged accounts were found: 'cyg_server' . *** Info: This script plans to use 'cyg_server'. *** Info: 'cyg_server' will only be used by registered services. *** Query: Please enter the password for user 'cyg_server': *** Query: Reenter: /usr/bin/cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5: Access is denied. *** ERROR: Installing sshd as a service failed! *** Warning: Host configuration exited with 4 errors or warnings! *** Warning: Make sure that all problems reported are fixed, *** Warning: then re-run ssh-host-config. What am I doing wrong? Thanks for any help you can give. Steve Cygwin 2.10.0-1 Windows 10 x64 Openssh 7.6p1-1 cyg_server exists as an account with admin privileges, as does my account. Windows accounts as workgroup, not domain. -- 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: question about running a linux-compat java prog under cygwin
On 2018-02-28 19:40, L A Walsh wrote: > R0b0t1 wrote: >> Should be unnecessary. The manufacturer probably picked Java for its >> cross-platform capabilities. > --- > maybe...with their new card, it's managed via a > web-server (NGinx) that gets installed -- then they look for > what web browser you are running. > > In the case of IE - they instantly assume it is > "edge"...which only runs on Win10...talk about LAME. > >> The one sticking point is I see no way a >> pure Java program can interact with a RAID controller, so I suspect >> there is a platform-specific portion somewhere. > --- > Hmmno sockets? or maybe talking to it with > SNMP? > Guess I'll find out...thanks for the response...at > least I know I can go whichever route offers least resistance. Quick look at issues implies you may be limited to platforms for SMI-S and CIM providers, which may be Linux, Windows, VMware, and NetApp, and ability to talk to those over the network, from the host GUI which may be PHP. Did not see any mentions of Java or JVM. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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: Possible output redirect bug
You are right, thank you for the explanation. Alex. -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Michel LaBarre Sent: Wednesday, February 28, 2018 7:02 PM To: 'Alexander Pelevin'; cygwin@cygwin.com Subject: RE: Possible output redirect bug > Subject: Possible output redirect bug > > Error output is not suppressed: > > > $ cygstart cmd /c "( >&2 pause ) >> test.txt" > > $ cat /dev/null >> test.txt >/dev/null 2>&1 > bash: test.txt: Device or resource busy The error message is not from the process running "cat" which is to what the redirections apply. The message is coming from the shell trying to setup file descriptors to pass to the process running "cat" - you can see "bash:" The shell cannot open the file for appending. A simpler demonstration is: $ cat < zorch > /dev/null 2>&1 bash: zorch: No such file or directory Alternately: $ ls zorch ls: cannot access 'zorch': No such file or directory shows std err is from "ls" and: $ ls zorch 2> /dev/null $ demonstrates redirection working. Try instead: ( cat /dev/null >> test.txt ) >/dev/null 2>&1 Cheers, Michel -- 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 -- 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: Possible output redirect bug
> Subject: Possible output redirect bug > > Error output is not suppressed: > > > $ cygstart cmd /c "( >&2 pause ) >> test.txt" > > $ cat /dev/null >> test.txt >/dev/null 2>&1 > bash: test.txt: Device or resource busy The error message is not from the process running "cat" which is to what the redirections apply. The message is coming from the shell trying to setup file descriptors to pass to the process running "cat" - you can see "bash:" The shell cannot open the file for appending. A simpler demonstration is: $ cat < zorch > /dev/null 2>&1 bash: zorch: No such file or directory Alternately: $ ls zorch ls: cannot access 'zorch': No such file or directory shows std err is from "ls" and: $ ls zorch 2> /dev/null $ demonstrates redirection working. Try instead: ( cat /dev/null >> test.txt ) >/dev/null 2>&1 Cheers, Michel -- 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: question about running a linux-compat java prog under cygwin
R0b0t1 wrote: Should be unnecessary. The manufacturer probably picked Java for its cross-platform capabilities. --- maybe...with their new card, it's managed via a web-server (NGinx) that gets installed -- then they look for what web browser you are running. In the case of IE - they instantly assume it is "edge"...which only runs on Win10...talk about LAME. The one sticking point is I see no way a pure Java program can interact with a RAID controller, so I suspect there is a platform-specific portion somewhere. --- Hmmno sockets? or maybe talking to it with SNMP? Guess I'll find out...thanks for the response...at least I know I can go whichever route offers least resistance. -- 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: question about running a linux-compat java prog under cygwin
On Wed, Feb 28, 2018 at 6:48 PM, L A Walshwrote: > Dunno much about java, so please try to not laugh too hard. > > I'm wanting to run the MegaRAID Storage Manager GUI on windows > to manage a megaraid controller. > > I run the GUI on linux to manage my server's controller -- that works > fine. > > Maybe I'm overthinking things, but thought running a posix compat > java on windows might be most compatible. It may be entirely > unnecessary (?) and maybe I should just try to run a native > Java -- anyone know? > > IF I run under cygwin, is there a java engine that runs under cygwin? > > Or do people running on cygwin just use a windows native binary? > > Thanks! > Should be unnecessary. The manufacturer probably picked Java for its cross-platform capabilities. The one sticking point is I see no way a pure Java program can interact with a RAID controller, so I suspect there is a platform-specific portion somewhere. If there is, Cygwin can't run it for you, it would be an ELF format .so distributed by the manufacturer. But they probably released versions for both platforms. If there is a free version, they likely targetted both, or you may be able to compile the necessary shared object under Cygwin. Java for UI across systems is a good trick. Program the part that matters, but has no GUI, in something else that you can compile for the systems you need to support. Cheers, R0b0t1 -- 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
question about running a linux-compat java prog under cygwin
Dunno much about java, so please try to not laugh too hard. I'm wanting to run the MegaRAID Storage Manager GUI on windows to manage a megaraid controller. I run the GUI on linux to manage my server's controller -- that works fine. Maybe I'm overthinking things, but thought running a posix compat java on windows might be most compatible. It may be entirely unnecessary (?) and maybe I should just try to run a native Java -- anyone know? IF I run under cygwin, is there a java engine that runs under cygwin? Or do people running on cygwin just use a windows native binary? Thanks! -- 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: [ANNOUNCEMENT] Updated: setup (2.889)
On 28/02/2018 23:09, Jon Turney wrote: On 28/02/2018 21:36, Marco Atzeri wrote: On 24/02/2018 15:26, Jon Turney wrote: setup is now smart enough to be told not to install these packages, unless the version of the clisp package which requires them is installed. so it is using "depends2" and not "requires" anymore ? I missed it was already on that step. It seems cygcheck-dep need to use the same strategy Thanks Marco -- 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: Re: Setting a bash variable from backtick operator fails
On 2018-02-27 03:37 PM, Vince Rice wrote: >> On Feb 27, 2018, at 2:29 PM, Kaz Kylheku <920-082-4...@kylheku.com> wrote: >> >> On 2018-02-27 09:10, Numien wrote: >>> Jürgen Wagner nailed it; it was my antivirus, and disabling the >>> shellcode injection check fixed it. >> However, this time-wasting pattern of dealing with the issue by end users >> is not a good way. >> >> A better approach would be to identify some common paterns of BLODA >> interference >> and code a test which can detect the interference. This should be executed at >> startup by the Cygwin shell so that a diagnostic can be displayed to the >> user. >> >> WARNING: Cygwin detected interference from a "dodgy" application >> such as anti-virus software. Your Cygwin installation may malfunction. >> See http:// > We await your patch, but you might want to search the archives first. > https://cygwin.com/acronyms/#SHTDI I would suggest at least putting a prominent link to the BLODA list near the top of https://cygwin.com/problems.html instead of 3rd from the bottom in the FAQ. -- 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: [ANNOUNCEMENT] Updated: setup (2.889)
On 28/02/2018 21:36, Marco Atzeri wrote: On 24/02/2018 15:26, Jon Turney wrote: A new version of Setup, release 2.889, has been uploaded to noted using `cygcheck-dep -N ..` /usr/bin/cygcheck-dep: WARNING: broken dependencies: /usr/bin/cygcheck-dep: installed package 'cygwin/clisp' /usr/bin/cygcheck-dep: depends on the following required packages that are /usr/bin/cygcheck-dep: not installed; these dependencies will be discarded /usr/bin/cygcheck-dep: ( libfcgi0 libffcall0 ) also reinstalling `clisp` setup does not pull libfcgi0 libffcall0, so it seems if dependencies of installed package are changing setup is not able to pull the missing dependencies. libfcgi0 and libffcall0 are only required by clisp 2.49.92-1, which is currently marked as a test version. setup is now smart enough to be told not to install these packages, unless the version of the clisp package which requires them is installed. -- 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
cygcheck-dep and _obsolete packages
Hi Mikhail, as latest setup skips the installation of _obsolete packages can you adjust the behaviour of cygcheck-dep to ignore the false warning ? /usr/bin/cygcheck-dep: WARNING: broken dependencies: /usr/bin/cygcheck-dep: installed package 'cygwin/xorg-server-devel' /usr/bin/cygcheck-dep: depends on the following required packages that are /usr/bin/cygcheck-dep: not installed; these dependencies will be discarded /usr/bin/cygcheck-dep: ( fontsproto inputproto kbproto presentproto randrproto renderproto resourceproto scrnsaverproto xextproto xf86bigfontproto xineramaproto xproto ) Thanks in advance Marco -- 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
[ANNOUNCEMENT] smartmontools 6.6-1
The following packages have been uploaded to the Cygwin distribution: * smartmontools-6.6-1 https://www.smartmontools.org/ Changes include: - smartctl '-i' and '--identify': ATA ACS-4 and SATA 3.3 enhancements. - smartctl: Control ATA write cache through SCT Feature Control with '-s wcache-sct,ata|on|off[,p]' and '-g wcache-sct'. - smartctl: Print ATA Pending Defects log with '-l defects'. - smartctl '-s wcreorder,on|off': New persistent flag ',p'. - smartctl '-s standby': Prevent temporary drive spinup. - smartctl '-n POWERMODE': New parameter to set exit status. - smartctl '-g security': ATA Security Level check fixed. - smartctl '-l scttemp*': Print minimum supported ERC Time Limit. - smartctl '-q noserial': Now also suppresses "SAS address" output. - smartctl '-i': Print IEEE EUI-64 of NVMe namespace. - smartctl '-c': Print NVMe 1.3 feature flags. - smartctl '-A': Print NVMe 1.3 thermal temperature transition statistic. - smartctl '-g/s dsn': Get/set ATA DSN. - smartd: Uses also device identify information to detect for duplicate devices. - smartd '-e dsn' directive: Set ATA DSN. - smartd: Improved SCSI/SAS temperature logging. - smartd: Silence emails and log messages on open errors of '-d removable' devices. - smartd: Exit on device open error unless '-q never' or '-d removable' is specified (regression). - update-smart-drivedb: Now authenticates downloaded file with GnuPG. - update-smart-drivedb: New options '--trunk', '--no-verify' and '--export-key'. - Device type '-d intelliprop,N' for IntelliProp controllers. - SCSI: Default timeout increased to 1 minute. - HDD, SSD and USB additions to drive database. - New smartmontools-* mailing list addresses. - Man page formatting reworked. - Windows: Support for Windows 10 NVMe driver (stornvme.sys). - Windows: Fix CSMI access for IRST driver 15.2. For a full list of changes see NEWS and ChangeLog in /usr/share/doc/smartmontools and ticket report at https://www.smartmontools.org/query?milestone=Release+6.6 For open issues see https://www.smartmontools.org/report Christian Franke -- 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
[ANNOUNCEMENT] Updated: neomutt-20180223-1
Version 20180223-1 of neomutt has been uploaded. The command line mail reader neomutt reached version 20180223. On GitHub it is possible to find the changelog for the new release: https://github.com/neomutt/neomutt/releases *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: cygwin-announce-unsubscribe-you=yourdomain.com cygwin.com If you need more information on unsubscribing, start reading here: https://sourceware.org/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -- 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: [ANNOUNCEMENT] Updated: setup (2.889)
On 24/02/2018 15:26, Jon Turney wrote: A new version of Setup, release 2.889, has been uploaded to noted using `cygcheck-dep -N ..` /usr/bin/cygcheck-dep: WARNING: broken dependencies: /usr/bin/cygcheck-dep: installed package 'cygwin/clisp' /usr/bin/cygcheck-dep: depends on the following required packages that are /usr/bin/cygcheck-dep: not installed; these dependencies will be discarded /usr/bin/cygcheck-dep: ( libfcgi0 libffcall0 ) also reinstalling `clisp` setup does not pull libfcgi0 libffcall0, so it seems if dependencies of installed package are changing setup is not able to pull the missing dependencies. -- 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: [PATCH setup] Add setup-minimum-version: to setup.ini
cyg Simple writes: > That point was already addressed by Jon and my retort was that the issue > could be resolved by supplying a symlink for the name without the version. You still failed to provide an evidence of the benefits outweighing the drawbacks. Also, I'm neither buying your argument that the practise you advocate is widespread (simply because there aren't many programs that work like setup.exe) nor that it is clearly better than the alternatives. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
[ANNOUNCEMENT] Updated: leptonica-1.75.3-1
Version 1.75.3-1 of packages leptonica libleptonica-devel libleptonica_5 are available in the Cygwin distribution: CHANGES Latest upstrame release http://www.leptonica.org/source/version-notes.html DESCRIPTION Leptonica is a pedagogically-oriented open source site containing software that is broadly useful for image processing and image analysis applications. Featured operations are Rasterop (a.k.a. bitblt) Affine transformations (scaling, translation, rotation, shear) on images of arbitrary pixel depth Binary and grayscale morphology, rank order, and convolution Seedfill and connected components Image transformations combining changes in scale and pixel depth Pixelwise masking, blending, enhancement, arithmetic ops, etc. Before it was included as component of tesseract-ocr. HOMEPAGE http://www.leptonica.org Marco Atzeri If you have questions or comments, please send them to the cygwin mailing list at: cygwin (at) cygwin (dot) com . -- 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
Worried your hair is falling out? This will change that
I know I was late, sorry... Cygwin-xfree ** Wellness Wire () ** AS WE AGE MOST OF US BEGIN TO LOSE HAIR. IT'S JUST PART OF LIFE. TODAY WE LOOK AT A SIMPLE WAY YOU CAN GET YOUR HAIR BACK ALONG WITH YOUR CONFIDENCE. READ MORE... (http://gfsdgs.piperposhpuppies.com/bhas4sbrat45n6san6ypipNiPObFzTcHFrMYwqBSRvU1yqitnhGYxFaBvo2S%2FTzPWeTiwzpjpRfzI3gaTH9Hek19zk0KtoEPHdIf6FYcriSg%3D%3Derp) ** http://gfsdgs.piperposhpuppies.com/bhas4sbrat45n6san6ypipNiPObFzTcHFrMYwqBSRvU1yqitnhGYxFaBvo2S%2FTzPWeTiwzpjpRfzI3gaTH9Hek19zk0KtoEPHdIf6FYcriSg%3D%3Derp ...Has your hair fallen to peices? () Don't let your hair make you feel bad. There are things you can do right now..Read on (http://gfsdgs.piperposhpuppies.com/bhas4sbrat45n6san6ypipNiPObFzTcHFrMYwqBSRvU1yqitnhGYxFaBvo2S%2FTzPWeTiwzpjpRfzI3gaTH9Hek19zk0KtoEPHdIf6FYcriSg%3D%3Derp875) Reener Development Services /-/ Three Springwood Trail Ormond Beach FL 32174 /-/ This URL (http://fsdfgsd.piperposhpuppies.com/bhsyw5n7wsr5ypipNiPObFzTcHFrMYwqBSRvU1yqitnhGYxFaBvo2S%2FTzPWeTiwzpjpRfzI3gaTH9Hek19zk0KtoEPHdIf6FYcriSg%3D%3Derp) will terminate future messages i thought it was a tide ad i hope he?s just doing bad thing after bad thing he's been doing that since community. Like () Tweet () Forward () -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
SUSE Users List
Hello Good Day, I would like to know if you are interested in acquiring SUSE Users List. Information fields: Names, Title, Email, Phone, Company Name, Company URL, Company physical address, SIC Code, Industry, Company Size (Revenue and Employee). Let me know if you are interested and I will get back to you with the counts and pricing. Regards, Sally Davis Data Consultant To opt out, please reply with Leave Out in the Subject Line. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
You're losing your family
happy with being single, but they seem to about women more than anything else. its obvious some of them are forcing themselves to be happy about being single. better to force yourself to be happy being single then otherwise i .. guess? hmm yeah i guess so. it went from all right to full mra not really. mgtow say that they wont get married or date because theres mostly no reason to do so nowadays and a lot of risks that come with relationships (divorce, fake rape charges etc). the incels sub was a place for virgins that mostly resent their looks since thats their justification of them not being able to get into a relationship. thats why lots of their posts were based around chad. of course after the incels sub went down (undeservingly imo) lots of them went to another place to keep their talk. since mgtow was pretty popular i guess lots of them may have joined so now the mgtow sub has more chad comments as of late. in case anyone wants to know, a man is more likely to be raped than to face false http://92o.lisamalloryblog.com/a7lisDcKk2N7bkHYmt4fglL71XQCgglo%2FjJ0LJZUdyC1efm%2BXE904cZxqv%2BsTDEc%2FGIAOqpgZmXBW8PxbzP0tU7ss3w%3D%3Damak/ http://92o.lisamalloryblog.com/a7lisDcKk2N7bkHYmt4fglL71XQCgglo%2FjJ0LJZUdyC1efm%2BXE904cZxqv%2BsTDEc%2FGIAOqpgZmXBW8PxbzP0tU7ss3w%3D%3Damak/ Your kid may be able to run around for hours, but that doesn't mean you can. Americans suffering from joint pain have a higher susceptability for depression and family relationship issues. Non-addictive and non-perscription CBD cream can help you ease the pain and be super dad again. SOOTHE THE PAIN (http://92o.lisamalloryblog.com/a7lisDcKk2N7bkHYmt4fglL71XQCgglo%2FjJ0LJZUdyC1efm%2BXE904cZxqv%2BsTDEc%2FGIAOqpgZmXBW8PxbzP0tU7ss3w%3D%3Damak/) http://hglv.lisamalloryblog.com/lisDcKk2N7bkHYmt4fglL71XQCgglo%2FjJ0LJZUdyC1efm%2BXE904cZxqv%2BsTDEc%2FGIAOqpgZmXBW8PxbzP0tU7ss3w%3D%3Damat3n5i -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Pasting from GNU/Linux into X11 Emacs running on Cygwin
On 2/27/2018 3:21 PM, Achim Gratz wrote: The first paste from my GNU/Linux konsole session into emacs-x11 running on Cygwin and displaying on the GNU/Linux display gets Emacs into a spin loop. I used to be able to C-g my way out of it, but since the latest major Emacs update I need to send Emacs a USR2 signal, which produces this backtrace: --8<---cut here---start->8--- Debugger entered--Lisp error: (quit) x-get-selection-internal(PRIMARY UTF8_STRING nil nil) #[1026 "\300..$\207" [x-get-selection-internal] 9 "\n\n(fn SELECTION-SYMBOL TARGET-TYPE TIME-STAMP TERMINAL)"](PRIMARY UTF8_STRING) apply(#[1026 "\300..$\207" [x-get-selection-internal] 9 "\n\n(fn SELECTION-SYMBOL TARGET-TYPE TIME-STAMP TERMINAL)"] (PRIMARY UTF8_STRING)) gui-backend-get-selection(PRIMARY UTF8_STRING) gui-get-selection(PRIMARY UTF8_STRING) gui--selection-value-internal(PRIMARY) gui-get-primary-selection() mouse-yank-primary((mouse-2 (# 1 (490 . 502) 12948233 nil 1 (70 . 0) nil (490 . 502) (7 . 12 funcall-interactively(mouse-yank-primary (mouse-2 (# 1 (490 . 502) 12948233 nil 1 (70 . 0) nil (490 . 502) (7 . 12 call-interactively(mouse-yank-primary nil nil) command-execute(mouse-yank-primary) --8<---cut here---end--->8--- Further pasting into the same Emacs (with the same selection) works just as it's supposed to work, so I am supecting something is uninitialized someplace that the first paste somehow rectifies except for triggering the guru meditation. Offhand I have no idea, but could you try emacs-26.0.91? It's available from my private Cygwin repo: http://sanibeltranquility.com/cygwin/ Ken -- 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
[PATCH setup 2/2] Improve file:// url handling
As a repo url, we're accepting * raw windows paths (with both \ and /) c:\cygwin repo \\machine\share\cygwin repo * proper file: urls file:///c:/cygwin%20repo file://machine/share/cygwin%20repo Most non-standard urls accepted by the old code should work, too. Paths longer than 260 characters are not supported anymore. --- netio.cc | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/netio.cc b/netio.cc index c8982de..1e784b1 100644 --- a/netio.cc +++ b/netio.cc @@ -25,6 +25,8 @@ #include #include +#include + #include "resource.h" #include "state.h" #include "msg.h" @@ -72,11 +74,24 @@ NetIO::open (char const *url, bool cachable) else if (strncmp (url, "ftps://", 7) == 0) proto = ftps; else if (strncmp (url, "file://", 7) == 0) -proto = file; - else { proto = file; - file_url = (std::string("file://") + url); + + // WinInet expects a legacy file:// url + // (a windows path with "file://" prepended) + // https://blogs.msdn.microsoft.com/freeassociations/2005/05/19/the-bizarre-and-unhappy-story-of-file-urls/ + char path[MAX_PATH]; + DWORD len = MAX_PATH; + if (S_OK == PathCreateFromUrl(url, path, , 0)) +{ + file_url = std::string("file://") + path; + url = file_url.c_str(); +} +} + else // treat everything else as a windows path +{ + proto = file; + file_url = std::string("file://") + url; url = file_url.c_str(); } -- 2.16.1
[PATCH setup 1/2] NetIO: Remove unused url parsing code
--- netio.cc | 64 -- netio.h| 11 ++- nio-ie5.cc | 3 +-- 3 files changed, 3 insertions(+), 75 deletions(-) diff --git a/netio.cc b/netio.cc index d60f119..c8982de 100644 --- a/netio.cc +++ b/netio.cc @@ -42,70 +42,6 @@ char *NetIO::net_proxy_passwd; char *NetIO::net_ftp_user; char *NetIO::net_ftp_passwd; -NetIO::NetIO (char const *Purl) -{ - set_url (Purl); -} - -NetIO::~NetIO () -{ - if (url) -delete[] url; - if (proto) -delete[] proto; - if (host) -delete[] host; - if (path) -delete[] path; -} - -void -NetIO::set_url (char const *Purl) -{ - char *bp, *ep, c; - - file_size = 0; - url = new char[strlen (Purl) + 1]; - strcpy (url, Purl); - proto = 0; - host = 0; - port = 0; - path = 0; - - bp = url; - ep = strstr (bp, "://"); - if (!ep) -{ - path = strdup (url); - return; -} - - *ep = 0; - proto = new char [strlen (bp)+1]; - strcpy (proto, bp); - *ep = ':'; - bp = ep + 3; - - ep = bp + strcspn (bp, ":/"); - c = *ep; - *ep = 0; - host = new char [strlen (bp) + 1]; - strcpy (host, bp); - *ep = c; - - if (*ep == ':') -{ - port = atoi (ep + 1); - ep = strchr (ep, '/'); -} - - if (*ep) -{ - path = new char [strlen (ep)+1]; - strcpy (path, ep); -} -} - int NetIO::ok () { diff --git a/netio.h b/netio.h index 7b7d13f..6d0f044 100644 --- a/netio.h +++ b/netio.h @@ -24,8 +24,6 @@ class NetIO { protected: - NetIO (char const *url); - void set_url (char const *url); BOOL ftp_auth; static char *net_user; @@ -39,13 +37,8 @@ protected: public: /* if nonzero, this is the estimated total file size */ int file_size; - /* broken down url FYI */ - char *url; - char *proto; - char *host; - int port; - char *path; -virtual ~ NetIO (); + + virtual ~ NetIO () {}; /* The user calls this function to create a suitable accessor for the given URL. It uses the network setup state in state.h. If diff --git a/nio-ie5.cc b/nio-ie5.cc index 5c93894..6fada0f 100644 --- a/nio-ie5.cc +++ b/nio-ie5.cc @@ -114,8 +114,7 @@ DWORD Proxy::type (void) const static HINTERNET internet = 0; static Proxy last_proxy = Proxy(-1, "", -1); -NetIO_IE5::NetIO_IE5 (char const *_url, bool cachable): -NetIO (_url) +NetIO_IE5::NetIO_IE5 (char const *url, bool cachable) { int resend = 0; -- 2.16.1
Remove legacy networking code, vol 2
[PATCH setup 1/2] NetIO: Remove unused url parsing code [PATCH setup 2/2] Improve file:// url handling netio.cc | 85 ++--- netio.h| 11 ++- nio-ie5.cc | 3 +-- 3 files changed, 21 insertions(+), 78 deletions(-)
Re: OPT OUT
you ain't kidding, Ben. -- 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