Fossil

Check-in [9c3b544e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Better comment why the group executable bit cannot be used on Cygwin, and possibly other IEEE 1003.1 ("POSIX.1") compliant systems, which support ACL's
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9c3b544ec29e92f022b8fd69b87c57e0bb547d74
User & Date: jan.nijtmans 2015-02-06 19:56:45
Context
2015-02-06
21:39
Reorder and revise the /timeline submenu controls for a more natural presentation. check-in: f76cfaca user: drh tags: trunk
19:56
Better comment why the group executable bit cannot be used on Cygwin, and possibly other IEEE 1003.1 ("POSIX.1") compliant systems, which support ACL's check-in: 9c3b544e user: jan.nijtmans tags: trunk
15:34
Workaround for recently introduced Cygwin bug: group permission is always set! This was the cause of the "execute permission" trouble in my recent commits. :-( check-in: d9dfe11d user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/file.c.

229
230
231
232
233
234
235
236
237


238
239
240
241
242
243
244
  Blob content;
  blob_read_link(&content, zFrom);
  symlink_create(blob_str(&content), zTo);
  blob_reset(&content);
}

#ifdef __CYGWIN__
/* Workaround for recently introduced Cygwin bug: group execute */
/* permission is always set, so it cannot be relied upon! */


# undef S_IXGRP
# define S_IXGRP 0
#endif

/*
** Return file permissions (normal, executable, or symlink):
**   - PERM_EXE if file is executable;







|
|
>
>







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
  Blob content;
  blob_read_link(&content, zFrom);
  symlink_create(blob_str(&content), zTo);
  blob_reset(&content);
}

#ifdef __CYGWIN__
/* On Cygwin (and possibly other IEEE 1003.1 ("POSIX.1") compliant systems)
** the group permission cannot be relied upon for security reasons. See:
** https://cygwin.com/faq/faq.html#faq.using.ssh-pubkey-stops-working
*/
# undef S_IXGRP
# define S_IXGRP 0
#endif

/*
** Return file permissions (normal, executable, or symlink):
**   - PERM_EXE if file is executable;