From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen) Subject: patch to winsup981020: symlink permissions 24 Oct 1998 10:14:03 -0700 Message-ID: <36320558.B7D63472.cygnus.cygwin32.developers@cityweb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: cygwin32-developers AT cygnus DOT com Hello, I want to suggest a simple patch. Under U*X and Linux, symlinks doesn't have explicit permissions. It's needless, because the permissions of the original file are used in fact. So a `ls -l' on a symlink looks like lrwxrwxrwx 1 user group 14 Oct 24 16:28 link -> orig If one generates a symlink with cygwin-dll, the links _have_ typical permission bit settings. lrwxr-xr-x 1 user group 14 Oct 24 16:28 link -> orig I would appreciate, if the following patch is made to path.cc, which would better reflect the behaviour of U*X like operating systems. Best Regards, Corinna --- path.cc-orig Sat Oct 24 17:32:22 1998 +++ path.cc Sat Oct 24 11:48:21 1998 @@ -1401,7 +1401,7 @@ symlink (const char *topath, const char else { _close (fd); - chmod (frompath, S_IFLNK | (STD_RBITS) | (STD_WBITS) | (STD_XBITS)); + chmod (frompath, S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO); res = 0; } }