fs: Abstract out code to get the last component
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 12 Apr 2011 18:28:15 +0000 (19:28 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Apr 2011 17:01:51 +0000 (10:01 -0700)
commit763ec5250deef6f0f8ae1c85b52bac3ffc1a6176
tree097ed30f304286b6855481b8f899f94193e1db15
parentb5bd42efb6d869f6abf3d041b861e77751898f67
fs: Abstract out code to get the last component

fs.c contained two identical copies of code to parse a path, resolve
any symbolic links in that path, and return the directory and basename.

Abstract this code out into a single function, rather than maintaining
two separate copies of it.

Change-Id: Id9fc835506f90bae2fc1f0db18c640bf28f0d39d
Reviewed-on: http://gerrit.openafs.org/4462
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/venus/fs.c