[ovs-dev] [PATCH 07/11] daemon-windows: Recognize --no-chdir option for windows.

Ben Pfaff blp at nicira.com
Tue Apr 22 21:58:05 UTC 2014


On Tue, Apr 22, 2014 at 01:40:55PM -0700, Gurucharan Shetty wrote:
> > Should OVS chdir to the root (on all drives?) on Windows
> > also?
> Looks like chdir("/") on windows takes me to C:/ . So doing that on
> windows should be good. I will re-spin this.

OK.

If Windows works like it used to, there's an independent notion of the
current working directory on every drive, so one would have to do
something like:

    char c;

    for (c = 'a'; c <= 'z'; c++) {
        char dir[] = {c, ':', '/', 0};
        chdir(dir);
    }

to really chdir to the root everywhere.  But I do not know whether it
matters.



More information about the dev mailing list