Package: unionfs-fuse
Version: 0.23.hg.20090611-1
Severity: grave

Hi,

diff between src/opts.c of previous and current versions of unionfs-fuse:
@@ -49,8 +75,7 @@ static char *make_absolute(char *relpath) {

        // 3 due to: +1 for '/' between cwd and relpath
        //           +1 for trailing '/'
-       //           +1 for terminating '\0'
-       int abslen = cwdlen + strlen(relpath) + 3;
+       int abslen = cwdlen + strlen(relpath) + 2;
        if (abslen > PATHLEN_MAX) {
                fprintf(stderr, "Absolute path too long!\n");
                return NULL;
@@ -62,10 +87,6 @@ static char *make_absolute(char *relpath) {
                exit(1); // still at early stage, we can abort
        }

-       // the trailing '/' is important so that we are sure later on the
-       // directory components are properly seperated
-       snprintf(abspath, abslen, "%s/%s/", cwd, relpath);

With latest unionfs-fuse I get a union of / for each relative path.

Regards,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to