public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Unison 2.43.3 fails to synchronize execute permission bit
       [not found] <CACWeX-c6RMviMhcgMjjJzQO-EVwuiQE1USgbKsTZcZep4QQeCA@mail.gmail.com>
@ 2015-11-02 19:12 ` Ms. Alex Hankins
  2015-11-03 14:42   ` Andrew Schulman
  0 siblings, 1 reply; 7+ messages in thread
From: Ms. Alex Hankins @ 2015-11-02 19:12 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

There was a bug with the umask in the test script.  I have fixed it
and attached it.

On Thu, Oct 29, 2015 at 11:26 AM, L <*******************> wrote:
> On Wed, Oct 28, 2015 at 2:55 PM,  <bccme@sneakemail.com> wrote:
>> When synchronizing two directories on the same NTFS-formatted drive, unison (with -perms 0o1777) fails to set execute permissions on new files.  (It also fails to detect changes in execute permissions and to set them on existing files.)
>>...
>
> I forgot cygcheck.out.  I have attached it.
>
> Ms. Alex Hankins

[-- Attachment #2: test-whether-unison-preserves-execute-permissions.bash --]
[-- Type: application/octet-stream, Size: 1246 bytes --]

#!/usr/bin/bash

# File:  test-whether-unison-preserves-execute-permissions.bash

# Test whether unison (and the filesystem housing /tmp)
# synchronizes execute-bits on new, local files.

# Comment out to turn on script debugging:
#set -x

# We need to clean up after the test is done, so we use this flag to 
# determine the exit status later.
#
success="false"

umask 007

# Try to create a temporary directory to store all test files.
#
tmpDir="/tmp/unison.$$"
if ! mkdir "${tmpDir}"; then
  echo >&2 "${0}": cannot make temporary directory.
  exit 1
fi

export UNISON="${tmpDir}/.unison"  # Keep ~/.unison clean.
mkdir "${UNISON}"

mkdir "${tmpDir}/a" "${tmpDir}/b"
touch "${tmpDir}/a/foo"
chmod u+rwx,go= "${tmpDir}/a/foo"

echo "----- Before synchronization:"
ls -lRa "${tmpDir}"
echo

echo "----- Running unison."
unison -batch -debug all -log=false -perms 0o1777 "${tmpDir}/a" "${tmpDir}/b" 
echo

echo "----- After synchronization:"
ls -lRa "${tmpDir}"
echo

if [ -x "${tmpDir}/b/foo" ]; then
  success="true"
else
  echo >&2 "${0}: test failed (for filesystem housing /tmp): execute bit not preserved"
  success="false"
fi

# Clean up the temporary directory we made.
rm -r "${tmpDir}"

if [ "${success}" = "false" ]; then
  exit 1
fi


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unison 2.43.3 fails to synchronize execute permission bit
  2015-11-02 19:12 ` Unison 2.43.3 fails to synchronize execute permission bit Ms. Alex Hankins
@ 2015-11-03 14:42   ` Andrew Schulman
  2015-11-04  4:12     ` Ms. Alex Hankins
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Schulman @ 2015-11-03 14:42 UTC (permalink / raw)
  To: cygwin

> There was a bug with the umask in the test script.  I have fixed it
> and attached it.

Thanks for reporting this.  I haven't had time to look at it yet, but I
will when I can.  My guess is that the only thing I'll be able to do is
report it upstream, to the unison-users list.  Feel free to do the same if
I don't get to it first.  They've been pretty responsive over the years in
supporting Cygwin.

Have you checked to see whether the same problem happens with earlier
versions of Unison?  That would help.
 
> On Thu, Oct 29, 2015 at 11:26 AM, L <*******************> wrote:
> > On Wed, Oct 28, 2015 at 2:55 PM,  <bccme@sneakemail.com> wrote:
> >> When synchronizing two directories on the same NTFS-formatted drive, unison (with -perms 0o1777) fails to set execute permissions on new files.  (It also fails to detect changes in execute permissions and to set them on existing files.)
> >>...
> >
> > I forgot cygcheck.out.  I have attached it.
> >
> > Ms. Alex Hankins


--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unison 2.43.3 fails to synchronize execute permission bit
  2015-11-03 14:42   ` Andrew Schulman
@ 2015-11-04  4:12     ` Ms. Alex Hankins
  2015-11-15 19:58       ` L
  2015-11-15 20:00       ` Ms. Alex Hankins
  0 siblings, 2 replies; 7+ messages in thread
From: Ms. Alex Hankins @ 2015-11-04  4:12 UTC (permalink / raw)
  To: cygwin

On Nov 3, 2015 9:43 AM, "Andrew Schulman schulman.andrew-at-epa.gov
|cygwin|" <mefsxk11et@sneakemail.com> wrote:
>
> > There was a bug with the umask in the test script.  I have fixed it
> > and attached it.
>
> Thanks for reporting this.  I haven't had time to look at it yet, but I
> will when I can.  My guess is that the only thing I'll be able to do is
> report it upstream, to the unison-users list.  Feel free to do the same if
> I don't get to it first.  They've been pretty responsive over the years in
> supporting Cygwin.
>
> Have you checked to see whether the same problem happens with earlier
> versions of Unison?  That would help.

Thank you very much for replying, Andrew. I just reproduced it in
these versions (from `unison -version`):

2.27.157
2.32.52
2.40.102
2.45.28
2.48.3

I will try to post here if I get around to reporting it to the unison list.

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unison 2.43.3 fails to synchronize execute permission bit
  2015-11-04  4:12     ` Ms. Alex Hankins
@ 2015-11-15 19:58       ` L
  2015-11-15 20:00       ` Ms. Alex Hankins
  1 sibling, 0 replies; 7+ messages in thread
From: L @ 2015-11-15 19:58 UTC (permalink / raw)
  To: cygwin

On Tue, Nov 3, 2015 at 11:12 PM, Ms. Alex Hankins
by7eth29fh-at-snkmail.com |cygwin| <1c3mq4azmt@sneakemail.com> wrote:
> On Nov 3, 2015 9:43 AM, "Andrew Schulman" ... wrote:
>>
>> Thanks for reporting this.  I haven't had time to look at it yet, but I
>> will when I can.  My guess is that the only thing I'll be able to do is
>> report it upstream, to the unison-users list.  Feel free to do the same if
>> I don't get to it first.  They've been pretty responsive over the years in
>> supporting Cygwin.
>>
...
>
> I will try to post here if I get around to reporting it to the unison list.

I am posting here, because just submitted the report to the
unison-users list.  I forgot to include the other versions that have
the bug, though.  Time will tell if I remember or if anyone there
asks.  :-)

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unison 2.43.3 fails to synchronize execute permission bit
  2015-11-04  4:12     ` Ms. Alex Hankins
  2015-11-15 19:58       ` L
@ 2015-11-15 20:00       ` Ms. Alex Hankins
  1 sibling, 0 replies; 7+ messages in thread
From: Ms. Alex Hankins @ 2015-11-15 20:00 UTC (permalink / raw)
  To: cygwin

On Tue, Nov 3, 2015 at 11:12 PM, Ms. Alex Hankins
by7eth29fh-at-snkmail.com |cygwin| <1c3mq4azmt@sneakemail.com> wrote:
> On Nov 3, 2015 9:43 AM, "Andrew Schulman" ... wrote:
>>
>> Thanks for reporting this.  I haven't had time to look at it yet, but I
>> will when I can.  My guess is that the only thing I'll be able to do is
>> report it upstream, to the unison-users list.  Feel free to do the same if
>> I don't get to it first.  They've been pretty responsive over the years in
>> supporting Cygwin.
>>
....
>
> I will try to post here if I get around to reporting it to the unison list.

I am posting here, because just submitted the report to the
unison-users list.  I forgot to include the other versions that have
the bug, though.  Time will tell if I remember or if anyone there
asks.  :-)

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unison 2.43.3 fails to synchronize execute permission bit
@ 2015-10-29 16:14 Ms. Alex Hankins
  0 siblings, 0 replies; 7+ messages in thread
From: Ms. Alex Hankins @ 2015-10-29 16:14 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

On Wed, Oct 28, 2015 at 2:55 PM,  <bccme@sneakemail.com> wrote:
> When synchronizing two directories on the same NTFS-formatted drive, unison (with -perms 0o1777) fails to set execute permissions on new files.  (It also fails to detect changes in execute permissions and to set them on existing files.)
>...

I forgot cygcheck.out.  I have attached it.

Ms. Alex Hankins

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 20633 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Thu Oct 29 16:24:04 2015

Windows NT Ver 10.0 Build 10240 

Path:	D:\cygwin64\home\Alex\script
	D:\cygwin64\usr\local\bin
	D:\cygwin64\bin
	C:\Program Files (x86)\Intel\iCLS Client
	C:\Program Files\Intel\iCLS Client
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\WINDOWS\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86
	C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64
	C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
	C:\Program Files (x86)\Windows Live\Shared
	C:\Program Files\Intel\WiFi\bin
	C:\Program Files\Common Files\Intel\WirelessCommon
	C:\Program Files (x86)\Skype\Phone
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files (x86)\GTK2-Runtime\bin

Output from D:\cygwin64\bin\id.exe
UID: 197609(Alex)
GID: 197609(Alex)
197609(Alex)
401408(Medium Mandatory Level)
197610(HomeUsers)
545(Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
68495(REDACTED_EMAIL_ADDRESS)
113(Local account)
66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Alex'
PWD = '/home/Alex'
HOME = '/home/Alex'

HOMEPATH = '\Users\Alex'
USERDOMAIN_ROAMINGPROFILE = 'JOAN'
APPDATA = 'C:\Users\Alex\AppData\Roaming'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'joan'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 58 Stepping 9, GenuineIntel'
TERM = 'xterm'
SHELL = '/bin/bash'
WINDIR = 'C:\WINDOWS'
PROFILEREAD = 'true'
PUBLIC = 'C:\Users\Public'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
USERDOMAIN = 'JOAN'
ORIGINAL_PATH = '/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Program Files (x86)/Skype/Phone:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/GTK2-Runtime/bin'
ALLUSERSPROFILE = 'C:\ProgramData'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
OS = 'Windows_NT'
!:: = '::\'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
TEMP = '/tmp'
USERNAME = 'Alex'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PSModulePath = 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\Alex'
LANG = 'en_US.UTF-8'
TZ = 'America/New_York'
LOGONSERVER = '\\MicrosoftAccount'
CommonProgramW6432 = 'C:\Program Files\Common Files'
LOCALAPPDATA = 'C:\Users\Alex\AppData\Local'
PROCESSOR_ARCHITECTURE = 'AMD64'
ProgramData = 'C:\ProgramData'
SHLVL = '2'
EXECIGNORE = '*.dll'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
SYSTEMROOT = 'C:\WINDOWS'
TMP = '/tmp'
PROCESSOR_REVISION = '3a09'
PRINTER = '\\fortesque\HP Deskjet 1000 J110 series'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROGRAMFILES = 'C:\Program Files'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
NUMBER_OF_PROCESSORS = '8'
SESSIONNAME = 'Console'
COMPUTERNAME = 'JOAN'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\SOFTWARE\Cygwin
HKEY_CURRENT_USER\SOFTWARE\Cygwin\Installations
  (default) = '\??\D:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\D:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'D:\cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: f76db13c759b51fa Path: D:\cygwin64
  User:   Key: f76db13c759b51fa Path: D:\cygwin64

c:  hd  NTFS    106640Mb  36% CP CS UN PA FC     Boot
d:  hd  NTFS    823571Mb   3% CP CS UN PA FC     Secondary

D:\cygwin64      /          system  binary,auto
D:\cygwin64\bin  /usr/bin   system  binary,auto
D:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: D:\cygwin64\bin\awk
 -> D:\cygwin64\bin\gawk.exe
Found: D:\cygwin64\bin\bash.exe
Found: D:\cygwin64\bin\cat.exe
Found: D:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: D:\cygwin64\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: D:\cygwin64\bin\find.exe hides C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: D:\cygwin64\bin\grep.exe
Found: D:\cygwin64\bin\kill.exe
Found: D:\cygwin64\bin\ld.exe
Found: D:\cygwin64\bin\ls.exe
Not Found: make
Found: D:\cygwin64\bin\mv.exe
Not Found: patch
Found: D:\cygwin64\bin\perl.exe
Found: D:\cygwin64\bin\rm.exe
Found: D:\cygwin64\bin\sed.exe
Found: D:\cygwin64\bin\ssh.exe
Found: D:\cygwin64\bin\sh.exe
Found: D:\cygwin64\bin\tar.exe
Found: D:\cygwin64\bin\test.exe
Found: D:\cygwin64\bin\vi.exe
Not Found: vim

   38k 2013/07/19 D:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2013-07-19 15:07
   16k 2013/03/26 D:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2013-03-26 18:26
  180k 2015/03/23 D:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2015-03-23 09:46
   64k 2013/03/07 D:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2013-03-07 02:54
   13k 2015/03/19 D:\cygwin64\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2015-03-19 02:44
    9k 2013/03/07 D:\cygwin64\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2013-03-07 09:29
 2217k 2015/07/09 D:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2015-07-09 17:49
 1526k 2013/03/08 D:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2013-03-08 07:55
  242k 2015/02/17 D:\cygwin64\bin\cygdbus-1-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdbus-1-3.dll" v0.0 ts=2015-02-17 19:16
  111k 2013/03/08 D:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2013-03-08 07:56
  472k 2013/03/08 D:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2013-03-08 07:58
  154k 2013/10/20 D:\cygwin64\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
  147k 2013/07/31 D:\cygwin64\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygexpat-1.dll" v0.0 ts=2013-07-31 22:53
   30k 2014/10/14 D:\cygwin64\bin\cygfam-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygfam-0.dll" v0.0 ts=2014-10-14 21:33
   26k 2015/01/11 D:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-01-11 09:25
   57k 2015/10/20 D:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2015-10-20 17:01
   69k 2015/07/02 D:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2015-07-01 18:03
   40k 2014/05/27 D:\cygwin64\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=1970-01-01 00:00
   13k 2014/05/27 D:\cygwin64\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=1970-01-01 00:00
 1244k 2015/03/12 D:\cygwin64\bin\cyggio-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggio-2.0-0.dll" v0.0 ts=2015-03-12 06:25
  956k 2015/03/12 D:\cygwin64\bin\cygglib-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygglib-2.0-0.dll" v0.0 ts=2015-03-12 06:21
   14k 2015/03/12 D:\cygwin64\bin\cyggmodule-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmodule-2.0-0.dll" v0.0 ts=2015-03-12 06:21
  520k 2015/01/26 D:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2015-01-26 16:08
  931k 2015/08/28 D:\cygwin64\bin\cyggnutls-28.dll - os=4.0 img=0.0 sys=5.2
                  "cyggnutls-28.dll" v0.0 ts=2015-08-28 17:05
   24k 2015/08/28 D:\cygwin64\bin\cyggnutls-openssl-27.dll - os=4.0 img=0.0 sys=5.2
                  "cyggnutls-openssl-27.dll" v0.0 ts=2015-08-28 17:06
   41k 2015/08/28 D:\cygwin64\bin\cyggnutlsxx-28.dll - os=4.0 img=0.0 sys=5.2
                  "cyggnutlsxx-28.dll" v0.0 ts=2015-08-28 17:06
  281k 2015/03/12 D:\cygwin64\bin\cyggobject-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggobject-2.0-0.dll" v0.0 ts=2015-03-12 06:22
  255k 2015/06/02 D:\cygwin64\bin\cyggssapi_krb5-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggssapi_krb5-2.dll" v0.0 ts=2015-06-02 04:41
    9k 2015/03/12 D:\cygwin64\bin\cyggthread-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggthread-2.0-0.dll" v0.0 ts=2015-03-12 06:21
   30k 2015/01/27 D:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2015-01-27 03:51
  168k 2015/02/12 D:\cygwin64\bin\cyghogweed-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyghogweed-2.dll" v0.0 ts=2015-02-12 17:27
 1009k 2015/02/20 D:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
   40k 2015/09/20 D:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2015-09-20 19:10
  180k 2015/06/02 D:\cygwin64\bin\cygk5crypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygk5crypto-3.dll" v0.0 ts=2015-06-02 04:40
  719k 2015/06/02 D:\cygwin64\bin\cygkrb5-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5-3.dll" v0.0 ts=2015-06-02 04:41
   35k 2015/06/02 D:\cygwin64\bin\cygkrb5support-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5support-0.dll" v0.0 ts=2015-06-02 04:40
    6k 2015/08/20 D:\cygwin64\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
                  "cyglsa64.dll" v0.0 ts=2015-08-20 10:42
  139k 2015/05/03 D:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2015-05-03 07:34
  114k 2015/08/12 D:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2015-08-12 20:01
  168k 2015/10/09 D:\cygwin64\bin\cygman-2-7-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-4.dll" v0.0 ts=2015-10-09 03:12
   22k 2015/10/09 D:\cygwin64\bin\cygmandb-2-7-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-4.dll" v0.0 ts=2015-10-09 03:18
   29k 2015/10/20 D:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2015-10-20 17:00
  341k 2015/06/30 D:\cygwin64\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-4.dll" v0.0 ts=2015-06-30 18:39
   53k 2015/10/20 D:\cygwin64\bin\cygncurses++w-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncurses++w-10.dll" v0.0 ts=2015-10-20 17:05
  301k 2015/10/20 D:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2015-10-20 16:59
  185k 2015/02/12 D:\cygwin64\bin\cygnettle-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygnettle-4.dll" v0.0 ts=2015-02-12 17:27
  319k 2015/06/01 D:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2015-06-01 19:02
   14k 2015/10/20 D:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2015-10-20 17:00
  460k 2015/08/11 D:\cygwin64\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2015-08-11 18:19
 2033k 2015/07/12 D:\cygwin64\bin\cygperl5_22.dll - os=4.0 img=0.0 sys=5.2
                  "cygperl5_22.dll" v0.0 ts=2015-07-12 17:24
   39k 2015/04/09 D:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
   41k 2013/10/21 D:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2013-10-21 21:52
  207k 2015/01/27 D:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2015-01-27 03:51
   11k 2015/07/17 D:\cygwin64\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
   89k 2015/03/23 D:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:46
  890k 2015/10/19 D:\cygwin64\bin\cygsqlite3-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsqlite3-0.dll/usr/bin/cygrunsrv: warning: QueryServiceConfig failed for 'rpcnetp': Win32 error 2
The system cannot find the file specified.
" v0.0 ts=2015-10-19 12:57
  421k 2015/07/09 D:\cygwin64\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2015-07-09 17:49
   12k 2015/07/02 D:\cygwin64\bin\cygssp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssp-0.dll" v0.0 ts=2015-07-01 18:53
  940k 2015/07/02 D:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2015-07-01 18:17
   66k 2015/08/28 D:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2015-08-28 10:36
   52k 2015/10/20 D:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2015-10-20 17:00
   15k 2015/03/23 D:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2015-03-23 09:46
 1207k 2014/10/19 D:\cygwin64\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygxml2-2.dll" v0.0 ts=2014-10-19 08:52
   80k 2014/11/19 D:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2014-11-19 23:08
 3306k 2015/08/20 D:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2015-08-20 10:42
    Cygwin DLL version info:
        DLL version: 2.2.1
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 289
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: D:\Users\Alex\Documents\downloads\win32\cygwin\cygwin-local-packages
Last downloaded files from: http://cygwin.refractal.net/

Package                   Version            Status
_autorebase               001002-1           OK
_update-info-dir          00485-1            OK
alternatives              1.3.30c-10         OK
base-cygwin               3.8-1              OK
base-files                4.2-4              OK
bash                      4.3.42-4           OK
binutils                  2.25-1             OK
bzip2                     1.0.6-2            OK
ca-certificates           2.5-1              OK
coreutils                 8.24-3             OK
crypt                     1.1-1              OK
csih                      0.9.9-1            OK
cygrunsrv                 1.62-1             OK
cygutils                  1.4.14-1           OK
cygwin                    2.2.1-1            OK
cygwin-devel              2.2.1-1            OK
dash                      0.5.8-3            OK
desktop-file-utils        0.21-1             OK
diffutils                 3.3-3              OK
editrights                1.03-1             OK
emacs                     24.5-2             OK
fdupes                    1.50-PR2-3         OK
file                      5.24-1             OK
findutils                 4.5.12-1           OK
gamin                     0.1.10-15          OK
gawk                      4.1.3-1            OK
getent                    2.18.90-4          OK
grep                      2.21-2             OK
groff                     1.22.3-1           OK
gsettings-desktop-schemas 3.14.2-1           OK
gzip                      1.6-1              OK
hostname                  3.13-1             OK
info                      6.0-1              OK
ipc-utils                 1.0-2              OK
less                      481-1              OK
libargp                   20110921-2         OK
libattr1                  2.4.46-1           OK
libblkid1                 2.25.2-2           OK
libbz2_1                  1.0.6-2            OK
libcom_err2               1.42.12-2          OK
libcrypt0                 1.1-1              OK
libdb5.3                  5.3.21-1           OK
libdbus1_3                1.8.16-1           OK
libedit0                  20130712-1         OK
libexpat1                 2.1.0-3            OK
libfam0                   0.1.10-15          OK
libffi6                   3.2.1-1            OK
libgcc1                   4.9.3-1            OK
libgdbm4                  1.11-1             OK
libglib2.0_0              2.42.2-1           OK
libgmp10                  6.0.0a-2           OK
libgnutls28               3.3.17-1           OK
libgssapi_krb5_2          1.13.2-1           OK
libhogweed2               2.7-2              OK
libiconv                  1.14-3             OK
libiconv2                 1.14-3             OK
libintl8                  0.19.5.1-2         OK
libk5crypto3              1.13.2-1           OK
libkrb5_3                 1.13.2-1           OK
libkrb5support0           1.13.2-1           OK
liblzma5                  5.2.1-1            OK
libmpfr4                  3.1.3-1            OK
libncursesw10             6.0-1.20151017     OK
libnettle4                2.7-2              OK
libopenssl100             1.0.2d-1           OK
libp11-kit0               0.22.1-1           OK
libpcre1                  8.37-2             OK
libpipeline1              1.4.0-1            OK
Empty package libpopt0
libpopt0                  1.16-1             OK
libreadline7              6.3.8-1            OK
libsigsegv2               2.10-2             OK
libsmartcols1             2.25.2-2           OK
libsqlite3_0              3.9.0-1            OK
libssp0                   4.9.3-1            OK
libstdc++6                4.9.3-1            OK
libtasn1_6                4.5-1              OK
libuuid-devel             2.25.2-2           OK
libuuid1                  2.25.2-2           OK
libxml2                   2.9.2-1            OK
login                     1.11-1             OK
lynx                      2.8.7-2            OK
man-db                    2.7.4-1            OK
mintty                    2.1.5-0            OK
ncurses                   6.0-1.20151017     OK
openssh                   7.1p1-1            OK
openssl                   1.0.2d-1           OK
p11-kit                   0.22.1-1           OK
p11-kit-trust             0.22.1-1           OK
perl                      5.22.0-1           OK
perl_autorebase           5.22.0-1           OK
perl_base                 5.22.0-1           OK
perl_manpages             5.22.0-1           OK
perl_pods                 5.22.0-1           OK
popt                      1.16-1             OK
python                    2.7.10-1           OK
rebase                    4.4.1-1            OK
run                       1.3.4-2            OK
sed                       4.2.2-3            OK
shared-mime-info          1.4-1              OK
tar                       1.28-1             OK
terminfo                  6.0-1.20151017     OK
terminfo-extra            6.0-1.20151017     OK
tzcode                    2015g-1            OK
unison2.48                2.48.3-1           OK
util-linux                2.25.2-2           OK
vim-minimal               7.4.891-1          OK
which                     2.20-2             OK
xz                        5.2.1-1            OK
zlib0                     1.2.8-3            OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Unison 2.43.3 fails to synchronize execute permission bit
@ 2015-10-29  3:09 Alex
  0 siblings, 0 replies; 7+ messages in thread
From: Alex @ 2015-10-29  3:09 UTC (permalink / raw)
  To: cygwin

When synchronizing two directories on the same NTFS-formatted drive, unison (with -perms 0o1777) fails to set execute permissions on new files.  (It also fails to detect changes in execute permissions and to set them on existing files.)

I am running Cygwin 64-bit from setup version 2.873.  Below is a script to test this phenomenon for new files.  It creates and later destroys a sandbox directory under /tmp/.

Thank you all for your time and efforts on the Cygwin project.  I have been a happy user for over 10 years.

Alex Hankins


----------
#!/usr/bin/bash

# File:  test-whether-unison-preserves-execute-permissions.bash

# Test whether unison (and the filesystem housing /tmp)
# synchronizes execute-bits on new, local files.

# Comment out to turn off script debugging:
#set -x

# We need to clean up after the test is done, so we use this flag to
# determine the exit status later.
#
success="false"

umask 700

# Try to create a temporary directory to store all test files.
#
tmpDir="/tmp/unison.$$"
if ! mkdir "${tmpDir}"; then
  echo >&2 "${0}": cannot make temporary directory.
  exit 1
fi

export UNISON="${tmpDir}/.unison"  # Keep ~/.unison clean.
mkdir "${UNISON}"

mkdir "${tmpDir}/a" "${tmpDir}/b"
touch "${tmpDir}/a/foo"
chmod u+rwx,go= "${tmpDir}/a/foo"

echo "----- Before synchronization:"
ls -lRa "${tmpDir}"
echo

echo "----- Running unison."
unison -batch -debug all -log=false -perms 0o1777 "${tmpDir}/a" "${tmpDir}/b"
echo

echo "----- After synchronization:"
ls -lRa "${tmpDir}"
echo

if [ -x "${tmpDir}/b/foo" ]; then
  success="true"
else
  echo >&2 "${0}: test failed (for filesystem housing /tmp): execute bit not preserved"
  success="false"
fi

# Clean up the temporary directory we made.
rm -r "${tmpDir}"

if [ "${success}" = "false" ]; then
  exit 1
fi


--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-11-15 20:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CACWeX-c6RMviMhcgMjjJzQO-EVwuiQE1USgbKsTZcZep4QQeCA@mail.gmail.com>
2015-11-02 19:12 ` Unison 2.43.3 fails to synchronize execute permission bit Ms. Alex Hankins
2015-11-03 14:42   ` Andrew Schulman
2015-11-04  4:12     ` Ms. Alex Hankins
2015-11-15 19:58       ` L
2015-11-15 20:00       ` Ms. Alex Hankins
2015-10-29 16:14 Ms. Alex Hankins
  -- strict thread matches above, loose matches on Subject: below --
2015-10-29  3:09 Alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).