Mail Archives: cygwin-developers/1998/10/24/10:14:03
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;
}
}
- Raw text -