Permalink
Browse files

Dont add '/' to fuse path when the cwd is only '/', breaks some IPC s…

…tuff
  • Loading branch information...
1 parent cdd74e2 commit b2efbe350caa04cd6e76778ac6ee40a6976cdff3 @kmoore134 kmoore134 committed Mar 4, 2014
Showing with 6 additions and 1 deletion.
  1. +6 −1 src-sh/pbi-manager/pbifs/main.c
@@ -99,7 +99,12 @@ int get_modified_path(char *npath, const char *opath)
strcpy(rPath, opath);
} else {
getwd(rPath);
- strcat(rPath, opath);
+ // If the cwd is just '/' then don't add anything to string
+ if ( strcmp(rPath, "/") == 0 ) {
+ strcpy(rPath, opath);
+ } else {
+ strcat(rPath, opath);
+ }
// Debugging
/*

0 comments on commit b2efbe3

Please sign in to comment.