]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afsio: process windows file paths consistently
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 12 Nov 2012 03:00:07 +0000 (22:00 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 28 May 2015 12:56:51 +0000 (08:56 -0400)
commit200f9c57927e988352491880bea70fa152d7cc61
treecc3f46da21bd988a4a65ac749aa64ecac9ad074b
parentc2718d5ed7380f2c6d8b8621e5886b20de225c4c
afsio: process windows file paths consistently

Windows file paths can use either '\' or '/' as a path
separator.  libafscp on the other hand requires '/' and argv[0]
will always use '\'.

Introduce a new function ConvertAFSPath() which converts the
input path to '/' and converts \\afs to /afs.  A future commit
should access the registry and make use of the NetbiosName and
MountRoot values to perform the conversion correctly.

Reviewed-on: http://gerrit.openafs.org/8430
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 0bef3159d3698a941154bd21352eb35bd94edb8c)

Change-Id: Id174313afae9c64a27133477e43e13731c0ac6b7
Reviewed-on: http://gerrit.openafs.org/11878
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/venus/afsio.c