util: Set program_name for windows correctly.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 6 Jan 2014 16:47:57 +0000 (08:47 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 14 Jan 2014 16:34:48 +0000 (08:34 -0800)
commited596d3a10ed0eab9aa0c48d5201b1b8046188cc
tree9a83e345f930a3d2f3dee695ec07fafb27f4160e
parent490db96efaf89c63656b192d5ca287b0908a6c77
util: Set program_name for windows correctly.

Windows path uses backward slashes. Also, the executable name
has a .exe extension in it. While creating log files, we use
the program name to create log file names. It feels a little odd
to have log file names like ovsdb-server.exe.log etc. Using
_splitpath_s() is a way to have same log file names on both
windows and linux platforms.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/util.c