+ /* strip leading dot, if homePath does not end in /. */
+ homePathLen = strlen( homePath );
+ if ( !strcmp( path, "." ) ) {
+ /* -fs_homebase . means that -fs_home is to be used as is */
+ strcpy( temp, homePath );
+ }
+ else if ( homePathLen >= 2 && !strcmp( homePath + homePathLen - 2, "/." ) ) {
+ /* remove trailing /. of homePath */
+ homePathLen -= 2;
+
+ /* concatenate home dir and path */
+ sprintf( temp, "%.*s/%s", homePathLen, homePath, path );
+ }
+ else
+ {
+ /* remove leading . of path */
+ if ( path[0] == '.' ) {
+ ++path;
+ }
+
+ /* concatenate home dir and path */
+ sprintf( temp, "%s/%s", homePath, path );
+ }
+