Re: libgif update ?

2018-01-26 Thread Marco Atzeri


On 26/01/2018 21:21, Yaakov Selkowitz wrote:

On 2018-01-26 13:37, Marco Atzeri wrote:

can you update libgif to latest version 5.1.x ?
Latest leptonic require it


And most other giflib consumers are *not* API compatible with 5.x.
There is currently a similar effort underway in Fedora[1]; once
complete, we should have patches to reuse.

[1] https://fedoraproject.org/wiki/Changes/GifLib5



Noted

--
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: libgif update ?

2018-01-26 Thread Yaakov Selkowitz
On 2018-01-26 13:37, Marco Atzeri wrote:
> can you update libgif to latest version 5.1.x ?
> Latest leptonic require it

And most other giflib consumers are *not* API compatible with 5.x.
There is currently a similar effort underway in Fedora[1]; once
complete, we should have patches to reuse.

[1] https://fedoraproject.org/wiki/Changes/GifLib5

-- 
Yaakov



signature.asc
Description: OpenPGP digital signature


libgif update ?

2018-01-26 Thread Marco Atzeri

Yaakov,
can you update libgif to latest version 5.1.x ?
Latest leptonic require it



Regards
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



Pozycjonowanie czyli pozyskiwanie klientów ...

2018-01-26 Thread WYSOKO
Witam

Chętnie zajmę się pozycjonowaniem (promowaniem w Google) Państwa strony WWW. 
Modernizacją lub wykonaniem nowej strony internetowej.

Pozycjonowanie zwiększy ruch potencjalnych klientów na stronie - co przełoży 
się na większe zainteresowanie Twoim biznesem.

Czy mogę przygotować ofertę?

pozdrawiam


--
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: Window 10 authorization problems

2018-01-26 Thread Robert McBroom

On 01/25/2018 12:53 PM, Achim Gratz wrote:

Robert McBroom writes:

Data drive

D:\cygwin64\

But that's not where your home directory is?

Next level down

D:\cygwin64\home




Both Windows 10 home and the insider edition of Windows 10 Pro are
installed and share the data drive.

If you share the home directory between two installations, then you
might see interesting problems unless both machines are joined to the
same domain.

Same machine multiboot.

But I really think from your other posting that the default DACL on your
home directory are sabotaging Cygwin's attempt at providing POSIX
semantics, so you should have better luck separating the Windows home
directory from your Cygwin one, then removing any inherited DACL from
the Cygwin home directory (don't do this to your Windows home
directory).


Regards,
Achim.




--
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: [ITP] neomutt

2018-01-26 Thread Jon Turney

On 24/01/2018 18:07, Federico Kircheis wrote:

On 01/21/2018 09:18 PM, Federico Kircheis wrote:


On 01/21/2018 06:51 PM, Jon Turney wrote:
Maybe it's not a good idea to describe it as a fork of Mutt, when 
https://www.neomutt.org/about.html says "It's not a fork of Mutt.

It's a large set of feature patches." :)


Well, I copied the text from the homepage, so it seems to be 
inconsistent. AFAIK the code has been forked and enhanced/patched and 
something merged back, but just to be sure I'll ask the authors what 
they would prefer as description.




I've asked the author of the project: "NeoMutt is a fork of Mutt".

Neomutt is not a fork of Mutt in the sense that the two projects are 
diverging.
Fixes done 'upstream' are backported to neomutt, meaning that neomutt is 
an extension of mutt.


You need to provide at least --prefix=/usr to ./configure (currently 
everything is being installed into /usr/local, not /usr), and 
possibly others to satisfy the requirements of [1]


[1] https://cygwin.com/packaging-package-files.html#package_contents


I updated the neomutt.cygport file and passed all parameters as 
described in [1], I'm unsure if localstatedir and infodir are really 
supported since they do not appear in the "Makefile.autosetup" file 
(but they do appear in the "system.ctl" file...).


I'll need to investigate it, maybe neomutt defaults are the same with 
those required (for example, the default for mandir seems to be the 
same as the required path), or maybe they are not used at all.




The parameters seems to be part of autosetup, but those directories are 
not used by neomutt.


Ok, no problem.

Is there anything else I can/should do in order to get the package 
approved?


I think you should also be using 'make_etc_defaults /etc/neomuttrc' in 
the install step.


Please provide a ssh key as per https://cygwin.com/package-upload.html


[PATCH setup 4/5] Add Proxy class

2018-01-26 Thread SZAVAI Gyula
---
 nio-ie5.cc | 59 +++
 1 file changed, 59 insertions(+)

diff --git a/nio-ie5.cc b/nio-ie5.cc
index a649233..e1a8e5c 100644
--- a/nio-ie5.cc
+++ b/nio-ie5.cc
@@ -63,6 +63,65 @@ determine_default_useragent(void)
   return default_useragent;
 }
 
+
+class Proxy
+{
+  int method;
+  std::string host;
+  int port;
+  std::string hostport;  // host:port
+
+public:
+  Proxy (int method, char const *host, int port)
+: method(method),
+  host(host ? host : ""),
+  port(port),
+  hostport(std::string(host ? host : "") + ":" + std::to_string(port))
+{};
+
+  bool operator!= (const Proxy ) const;
+
+  DWORD type (void) const;
+  char const *string (void) const;
+  char const *bypass (void) const;
+};
+
+bool Proxy::operator!= (const Proxy ) const
+{
+if (method != o.method) return true;
+if (method != IDC_NET_PROXY) return false;
+if (host != o.host) return true;
+if (port != o.port) return true;
+return false;
+}
+
+char const *Proxy::string(void) const
+{
+  if (method == IDC_NET_PROXY)
+return hostport.c_str();
+  else
+return NULL;
+}
+
+char const *Proxy::bypass(void) const
+{
+  if (method == IDC_NET_PROXY)
+return "";   // use "<-loopback>" to do NOT bypass for localhost
+  else
+return NULL;
+}
+
+DWORD Proxy::type (void) const
+{
+  switch (method)
+{
+  case IDC_NET_PROXY: return INTERNET_OPEN_TYPE_PROXY;
+  case IDC_NET_PRECONFIG: return INTERNET_OPEN_TYPE_PRECONFIG;
+  default: return INTERNET_OPEN_TYPE_DIRECT;
+}
+}
+
+
 NetIO_IE5::NetIO_IE5 (char const *_url, bool direct, bool cachable):
 NetIO (_url)
 {
-- 
2.14.3



[PATCH setup 5/5] Remove NetIO_HTTP

2018-01-26 Thread SZAVAI Gyula
---
 Makefile.am |   2 -
 netio.cc|  10 +--
 nio-http.cc | 208 
 nio-http.h  |  39 
 nio-ie5.cc  |  30 -
 nio-ie5.h   |   2 +-
 6 files changed, 16 insertions(+), 275 deletions(-)
 delete mode 100644 nio-http.cc
 delete mode 100644 nio-http.h

diff --git a/Makefile.am b/Makefile.am
index f8f5993..cd5648a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -192,8 +192,6 @@ inilint_SOURCES = \
netio.h \
nio-ie5.cc \
nio-ie5.h \
-   nio-http.cc \
-   nio-http.h \
package_db.cc \
package_db.h \
package_depends.h \
diff --git a/netio.cc b/netio.cc
index d77108b..90fb3df 100644
--- a/netio.cc
+++ b/netio.cc
@@ -29,7 +29,6 @@
 #include "state.h"
 #include "msg.h"
 #include "nio-ie5.h"
-#include "nio-http.h"
 #include "dialog.h"
 
 int NetIO::net_method;
@@ -144,14 +143,7 @@ NetIO::open (char const *url, bool cachable)
   url = url2.c_str();
 }
 
-  if (proto == file)
-rv = new NetIO_IE5 (url, true, false);
-  else if (net_method == IDC_NET_PRECONFIG)
-rv = new NetIO_IE5 (url, false, cachable);
-  else if (net_method == IDC_NET_PROXY)
-rv = new NetIO_HTTP (url);
-  else if (net_method == IDC_NET_DIRECT)
-rv = new NetIO_IE5 (url, true, cachable);
+  rv = new NetIO_IE5 (url, proto == file ? false : cachable);
 
   if (rv && !rv->ok ())
 {
diff --git a/nio-http.cc b/nio-http.cc
deleted file mode 100644
index 413ee7f..000
--- a/nio-http.cc
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * Copyright (c) 2000, 2001, Red Hat, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * A copy of the GNU General Public License can be found at
- * http://www.gnu.org/
- *
- * Written by DJ Delorie 
- *
- */
-
-/* This file is responsible for implementing all direct HTTP protocol
-   channels.  It is intentionally simplistic. */
-
-#include "win32.h"
-#include 
-#include 
-#include 
-
-#include "resource.h"
-#include "state.h"
-#include "simpsock.h"
-#include "msg.h"
-
-#include "netio.h"
-#include "nio-http.h"
-
-#ifndef _strnicmp
-#define _strnicmp strncasecmp
-#endif
-
-static char six2pr[64] = {
-  'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
-  'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
-  'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
-  'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
-  '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
-};
-
-static char *
-base64_encode (char *username, char *password)
-{
-  unsigned char *ep;
-  char *rp;
-  static char *rv = 0;
-  if (rv)
-delete[] rv;
-  rv = new char[2 * (strlen (username) + strlen (password)) + 5];
-
-  char *up = new char[strlen (username) + strlen (password) + 6];
-  strcpy (up, username);
-  strcat (up, ":");
-  strcat (up, password);
-  ep = (unsigned char *) up + strlen (up);
-  *ep++ = 0;
-  *ep++ = 0;
-  *ep++ = 0;
-
-  char block[4];
-
-  rp = rv;
-
-  for (ep = (unsigned char *) up; *ep; ep += 3)
-{
-  block[0] = six2pr[ep[0] >> 2];
-  block[1] = six2pr[((ep[0] << 4) & 0x30) | ((ep[1] >> 4) & 0x0f)];
-  block[2] = six2pr[((ep[1] << 2) & 0x3c) | ((ep[2] >> 6) & 0x03)];
-  block[3] = six2pr[ep[2] & 0x3f];
-
-  if (ep[1] == 0)
-   block[2] = block[3] = '=';
-  if (ep[2] == 0)
-   block[3] = '=';
-  memcpy (rp, block, 4);
-  rp += 4;
-}
-  *rp = 0;
-
-  delete[] up;
-
-  return rv;
-}
-
-NetIO_HTTP::NetIO_HTTP (char const *Purl):NetIO (Purl)
-{
-  std::string url (Purl);
-retry_get:
-  if (port == 0)
-port = 80;
-
-  if (net_method == IDC_NET_PROXY)
-s = new SimpleSocket (net_proxy_host, net_proxy_port);
-  else
-s = new SimpleSocket (host, port);
-
-  if (!s->ok ())
-{
-  delete s;
-  s = NULL;
-  return;
-}
-
-  if (net_method == IDC_NET_PROXY)
-s->printf ("GET %s HTTP/1.0\r\n", url.c_str ());
-  else
-s->printf ("GET %s HTTP/1.0\r\n", path);
-
-  // Default HTTP port is 80. Host header can have no port if requested port
-  // is the same as the default.  Some HTTP servers don't behave as expected
-  // when they receive a Host header with the unnecessary default port value.
-  if (port == 80)
-s->printf ("Host: %s\r\n", host);
-  else
-s->printf ("Host: %s:%d\r\n", host, port);
-
-  if (net_user && net_passwd)
-s->printf ("Authorization: Basic %s\r\n",
-  base64_encode (net_user, net_passwd));
-
-  if (net_proxy_user && net_proxy_passwd)
-s->printf ("Proxy-Authorization: Basic %s\r\n",
-  base64_encode (net_proxy_user, net_proxy_passwd));
-
-  s->printf ("\r\n");
-
-  char * l = s->gets ();
-  int code;
-  if (!l)
-return;
-  sscanf 

[PATCH setup 3/5] Remove NetIO_File

2018-01-26 Thread SZAVAI Gyula
---
 Makefile.am |  2 --
 netio.cc| 12 +---
 nio-file.cc | 64 -
 nio-file.h  | 31 --
 4 files changed, 9 insertions(+), 100 deletions(-)
 delete mode 100644 nio-file.cc
 delete mode 100644 nio-file.h

diff --git a/Makefile.am b/Makefile.am
index aca3ccc..f8f5993 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -192,8 +192,6 @@ inilint_SOURCES = \
netio.h \
nio-ie5.cc \
nio-ie5.h \
-   nio-file.cc \
-   nio-file.h \
nio-http.cc \
nio-http.h \
package_db.cc \
diff --git a/netio.cc b/netio.cc
index 6c357fc..d77108b 100644
--- a/netio.cc
+++ b/netio.cc
@@ -28,7 +28,6 @@
 #include "resource.h"
 #include "state.h"
 #include "msg.h"
-#include "nio-file.h"
 #include "nio-ie5.h"
 #include "nio-http.h"
 #include "dialog.h"
@@ -124,6 +123,7 @@ NetIO *
 NetIO::open (char const *url, bool cachable)
 {
   NetIO *rv = 0;
+  std::string url2;
   enum
   { http, https, ftp, ftps, file }
   proto;
@@ -135,11 +135,17 @@ NetIO::open (char const *url, bool cachable)
 proto = ftp;
   else if (strncmp (url, "ftps://", 7) == 0)
 proto = ftps;
-  else
+  else if (strncmp (url, "file://", 7) == 0)
 proto = file;
+  else
+{
+  proto = file;
+  url2 = (std::string("file://") + url);
+  url = url2.c_str();
+}
 
   if (proto == file)
-rv = new NetIO_File (url);
+rv = new NetIO_IE5 (url, true, false);
   else if (net_method == IDC_NET_PRECONFIG)
 rv = new NetIO_IE5 (url, false, cachable);
   else if (net_method == IDC_NET_PROXY)
diff --git a/nio-file.cc b/nio-file.cc
deleted file mode 100644
index fce1b2c..000
--- a/nio-file.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2000, Red Hat, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * A copy of the GNU General Public License can be found at
- * http://www.gnu.org/
- *
- * Written by DJ Delorie 
- *
- */
-
-/* The purpose of this file is to manage access to files stored on the
-   local disk (i.e. "downloading" setup.ini).  Called from netio.cc */
-
-#include "win32.h"
-#include 
-#include 
-#include 
-#include 
-#include "netio.h"
-#include "nio-file.h"
-#include "resource.h"
-#include "msg.h"
-#include "filemanip.h"
-#include "LogSingleton.h"
-
-NetIO_File::NetIO_File (char const *Purl):
-NetIO (Purl)
-{
-  fd = nt_fopen (path, "rb");
-  if (fd)
-{
-  file_size = get_file_size (std::string("file://") + path);
-}
-  else
-{
-  const char *err = strerror (errno);
-  if (!err)
-err = "(unknown error)";
-  Log (LOG_BABBLE) << "Can't open " << path << " for reading: " << err << 
endLog;
-}
-}
-
-NetIO_File::~NetIO_File ()
-{
-  if (fd)
-fclose ((FILE *) fd);
-}
-
-int
-NetIO_File::ok ()
-{
-  return fd ? 1 : 0;
-}
-
-int
-NetIO_File::read (char *buf, int nbytes)
-{
-  return fread (buf, 1, nbytes, (FILE *) fd);
-}
diff --git a/nio-file.h b/nio-file.h
deleted file mode 100644
index fe5e8e0..000
--- a/nio-file.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2000, Red Hat, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * A copy of the GNU General Public License can be found at
- * http://www.gnu.org/
- *
- * Written by DJ Delorie 
- *
- */
-
-#ifndef SETUP_NIO_FILE_H
-#define SETUP_NIO_FILE_H
-
-/* see nio-file.cc */
-
-class NetIO_File:public NetIO
-{
-public:
-  NetIO_File (char const *url);
-  void *fd;
-   ~NetIO_File ();
-  virtual int ok ();
-  virtual int read (char *buf, int nbytes);
-};
-
-#endif /* SETUP_NIO_FILE_H */
-- 
2.14.3



[PATCH setup 1/5] Remove direct(legacy) connection type

2018-01-26 Thread SZAVAI Gyula
---
 ConnectionSetting.cc |   5 --
 Makefile.am  |   2 -
 net.cc   |   9 +--
 netio.cc |  20 --
 nio-ftp.cc   | 179 ---
 nio-ftp.h|  41 
 res.rc   |   2 -
 resource.h   |   1 -
 8 files changed, 3 insertions(+), 256 deletions(-)
 delete mode 100644 nio-ftp.cc
 delete mode 100644 nio-ftp.h

diff --git a/ConnectionSetting.cc b/ConnectionSetting.cc
index 1154d94..5baf76c 100644
--- a/ConnectionSetting.cc
+++ b/ConnectionSetting.cc
@@ -49,9 +49,6 @@ ConnectionSetting::~ConnectionSetting ()
   sprintf(port_str, "%d", NetIO::net_proxy_port);
   UserSettings::instance().set("net-proxy-port", port_str);
   break;
-case IDC_NET_DIRECT_LEGACY:
-  UserSettings::instance().set("net-method", "Legacy");
-  break;
 default:
break;
 }
@@ -66,8 +63,6 @@ ConnectionSetting::typeFromString(const std::string& aType)
 return IDC_NET_IE5;
   if (!casecompare(aType, "Proxy"))
 return IDC_NET_PROXY;
-  if (!casecompare(aType, "Legacy"))
-return IDC_NET_DIRECT_LEGACY;
 
   /* A sanish default */
   return IDC_NET_IE5;
diff --git a/Makefile.am b/Makefile.am
index a238d88..aca3ccc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -194,8 +194,6 @@ inilint_SOURCES = \
nio-ie5.h \
nio-file.cc \
nio-file.h \
-   nio-ftp.cc \
-   nio-ftp.h \
nio-http.cc \
nio-http.h \
package_db.cc \
diff --git a/net.cc b/net.cc
index fa6f1e3..5ff3713 100644
--- a/net.cc
+++ b/net.cc
@@ -37,7 +37,7 @@ extern ThreeBarProgressPage Progress;
 
 static StringOption ProxyOption ("", 'p', "proxy", "HTTP/FTP proxy 
(host:port)", false);
 
-static int rb[] = { IDC_NET_IE5, IDC_NET_DIRECT, IDC_NET_PROXY, 
IDC_NET_DIRECT_LEGACY, 0 };
+static int rb[] = { IDC_NET_IE5, IDC_NET_DIRECT, IDC_NET_PROXY, 0 };
 static bool doing_loading = false;
 
 void
@@ -47,8 +47,7 @@ NetPage::CheckIfEnableNext ()
   DWORD ButtonFlags = PSWIZB_BACK;
 
   if (NetIO::net_method == IDC_NET_IE5 ||
-  NetIO::net_method == IDC_NET_DIRECT ||
-  NetIO::net_method == IDC_NET_DIRECT_LEGACY)
+  NetIO::net_method == IDC_NET_DIRECT)
 e = 1;
   else if (NetIO::net_method == IDC_NET_PROXY)
 {
@@ -132,8 +131,7 @@ NetPage::OnInit ()
 
   // Check to see if any radio buttons are selected. If not, select a default.
   if (SendMessage (GetDlgItem (IDC_NET_DIRECT), BM_GETCHECK, 0, 0) != 
BST_CHECKED
-  && SendMessage (GetDlgItem (IDC_NET_PROXY), BM_GETCHECK, 0, 0) != 
BST_CHECKED
-  && SendMessage (GetDlgItem (IDC_NET_DIRECT_LEGACY), BM_GETCHECK, 0, 0) 
!= BST_CHECKED)
+  && SendMessage (GetDlgItem (IDC_NET_PROXY), BM_GETCHECK, 0, 0) != 
BST_CHECKED)
 SendMessage (GetDlgItem (IDC_NET_IE5), BM_CLICK, 0, 0);
 }
 
@@ -169,7 +167,6 @@ NetPage::OnMessageCmd (int id, HWND hwndctl, UINT code)
 case IDC_NET_IE5:
 case IDC_NET_DIRECT:
 case IDC_NET_PROXY:
-case IDC_NET_DIRECT_LEGACY:
 case IDC_PROXY_HOST:
 case IDC_PROXY_PORT:
   save_dialog (GetHWND());
diff --git a/netio.cc b/netio.cc
index cf634c1..86bb69a 100644
--- a/netio.cc
+++ b/netio.cc
@@ -31,7 +31,6 @@
 #include "nio-file.h"
 #include "nio-ie5.h"
 #include "nio-http.h"
-#include "nio-ftp.h"
 #include "dialog.h"
 
 int NetIO::net_method;
@@ -147,23 +146,6 @@ NetIO::open (char const *url, bool cachable)
 rv = new NetIO_HTTP (url);
   else if (net_method == IDC_NET_DIRECT)
 rv = new NetIO_IE5 (url, true, cachable);
-  else if (net_method == IDC_NET_DIRECT_LEGACY)
-{
-  switch (proto)
-   {
-   case http:
- rv = new NetIO_HTTP (url);
- break;
-   case ftp:
- rv = new NetIO_FTP (url);
- break;
-   case file:
- rv = new NetIO_File (url);
- break;
-   default:
- mbox (NULL, "Protocol not handled by legacy URL handler", "Cygwin 
Setup", MB_OK);
-   }
-}
 
   if (rv && !rv->ok ())
 {
@@ -304,8 +286,6 @@ NetIO::net_method_name ()
   return "Direct";
 case IDC_NET_PROXY:
   return "Proxy";
-case IDC_NET_DIRECT_LEGACY:
-  return "Direct (legacy)";
 default:
   return "Unknown";
 }
diff --git a/nio-ftp.cc b/nio-ftp.cc
deleted file mode 100644
index 65625d5..000
--- a/nio-ftp.cc
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * Copyright (c) 2000, 2001, Red Hat, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * A copy of the GNU General Public License can be found at
- * http://www.gnu.org/
- *
- * Written by DJ Delorie 
- *
- */
-
-/* This file is responsible for implementing all direct FTP protocol
-   channels.  It is intentionally simplistic. */
-
-#include "nio-ftp.h"
-

Remove legacy networking code

2018-01-26 Thread SZAVAI Gyula
[PATCH setup 1/5] Remove direct(legacy) connection type
[PATCH setup 2/5] Rename IDC_NET_IE5 to IDC_NET_PRECONFIG
[PATCH setup 3/5] Remove NetIO_File
[PATCH setup 4/5] Add Proxy class
[PATCH setup 5/5] Remove NetIO_HTTP

 ConnectionSetting.cc |  11 ++---
 Makefile.am  |   6 ---
 net.cc   |  17 +++
 netio.cc |  42 -
 nio-file.cc  |  64 --
 nio-file.h   |  31 -
 nio-ftp.cc   | 179 

 nio-ftp.h|  41 -
 nio-http.cc  | 208 

 nio-http.h   |  39 
 nio-ie5.cc   |  89 +---
 nio-ie5.h|   2 +-
 res.rc   |   4 +-
 resource.h   |   3 +-
 14 files changed, 96 insertions(+), 640 deletions(-)


Cygwin rsync slow with noacl in fstab [GishPuppy]

2018-01-26 Thread cygwin . 63zb
I have a directory tree on my FreeNAS system that I back up to my work PC 
remotely using rsync. As is commonly known, cygwin rsync creates all kinds of 
weird permissions issues when syncing files between POSIX systems and Windows 
(even when using --no-A and --chmod=ugo=rwX). To solve this issue I edited the 
cygwin fstab file to contain the noacl directive. The problem is that with 
noacl in the fstab, rsync takes 231 seconds to process the directory tree with 
0 file changes in comparison to 11 seconds without noacl. I tried --no-c and 
there was no speedup. 

The actual rsync command in question is:

rsync --stats -rltDHzvu --no-c --compress-level=6 "192.168.1.2::foo/bar/" 
"/cygdrive/Y/foo/bar/"

The output of Measure-Command in Windows Powershell is below.

Without noacl
-
PS Y:\> Measure-Command {rsync --stats -rltDHzvu --no-c --compress-level=6 
"192.168.1.2::foo/bar/" "/cygdrive/Y/foo/bar/"}


Days  : 0
Hours : 0
Minutes   : 0
Seconds   : 11
Milliseconds  : 179
Ticks : 111794753
TotalDays : 0.000129392075231481
TotalHours: 0.0031054098056
TotalMinutes  : 0.18632458833
TotalSeconds  : 11.1794753
TotalMilliseconds : 11179.4753

With noacl
-
PS Y:\> Measure-Command {rsync --stats -rltDHzvu --no-c --compress-level=6 
"192.168.1.2::foo/bar/" "/cygdrive/Y/foo/bar/"}


Days  : 0
Hours : 0
Minutes   : 3
Seconds   : 50
Milliseconds  : 724
Ticks : 2307248234
TotalDays : 0.00267042619675926
TotalHours: 0.064090228722
TotalMinutes  : 3.8454137233
TotalSeconds  : 230.7248234
TotalMilliseconds : 230724.8234

Any ideas appreciated.

Gishpuppy | To change the delivery settings for this email, click here: 
http://www.gishpuppy.com/cgi-bin/edit.py?email=cygwin@cygwin.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