Re: Unison 2.43.3 fails to synchronize execute permission bit
On Tue, Nov 3, 2015 at 11:12 PM, Ms. Alex Hankins by7eth29fh-at-snkmail.com |cygwin| <1c3mq4a...@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
Re: Unison 2.43.3 fails to synchronize execute permission bit
On Tue, Nov 3, 2015 at 11:12 PM, Ms. Alex Hankins by7eth29fh-at-snkmail.com |cygwin| <1c3mq4a...@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
Re: Unison 2.43.3 fails to synchronize execute permission bit
On Nov 3, 2015 9:43 AM, "Andrew Schulman schulman.andrew-at-epa.gov |cygwin|"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
Re: Unison 2.43.3 fails to synchronize execute permission bit
> 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,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
Re: Unison 2.43.3 fails to synchronize execute permission bit
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,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 test-whether-unison-preserves-execute-permissions.bash Description: Binary data -- 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: Unison 2.43.3 fails to synchronize execute permission bit
On Wed, Oct 28, 2015 at 2:55 PM,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 cygcheck.out Description: Binary data -- 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
Unison 2.43.3 fails to synchronize execute permission bit
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