On Mon, Nov 2, 2015 at 4:00 PM, Warren Young <w...@etr-usa.com> wrote:

> On Nov 2, 2015, at 3:56 PM, Richard Hipp <d...@sqlite.org> wrote:
> >
> > On 11/2/15, Jan Danielsson <jan.m.daniels...@gmail.com> wrote:
> >>
> >>   Supporting symlinks on Windows would currently be a little mess.
> >
> > What if we just say that symlinks don't work on Windows and that if
> > you include them in your repo, you won't be able to checkout (sanely)
> > on Windows?
>
> I think Fossil should give a best-effort try via UAC, but yeah, if that
> doesn’t work, no tears should be shed about it.
>

I know I've posted this before, but just to reiterate:

If you are an unprivileged user, you can create symlinks if you've been
granted the symlink priv. It is not hard to do at all.

The problem comes with UAC for unelevated administrative users only,
because Microsoft in their infinite wisdom saw fit to strip symlink privs
from unelevated admin users by default.

One: Most windows users wouldn't be using symlinks and wouldn't care.

Two: It's not hard to have two command prompts open, one running as a non
admin user with symlink privs. One could run fossil from the non admin
user. Or one could easily run fossil as the non admin user that has symlink
privs.

Maybe it's not worth doing, and maybe I shouldn't have bothered adding real
symlink support in the winsymlink branch. However, it is possible, and it's
not as onerous as many people are making it out to be.

>From https://en.wikipedia.org/wiki/NTFS_symbolic_link#Restrictions: The
default security settings in Windows Vista/Windows 7
<https://en.wikipedia.org/wiki/Windows_7> disallow non-elevated
administrators and all non-administrators from creating symbolic links. *This
behavior can be changed running "secpol.msc" the Local Security Policy
management console (under: Security Settings\Local Policies\User Rights
Assignment\Create symbolic links). It can be worked around by starting
**cmd.exe
<https://en.wikipedia.org/wiki/Cmd.exe> with Run as administrator option or
the runas <https://en.wikipedia.org/wiki/Runas> command.*

-- 
Scott Robison
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to