forked from libfuse/libfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
/* | ||
fuse iconv module: file name charset conversion | ||
Copyright (C) 2007 Miklos Szeredi <[email protected]> | ||
This program can be distributed under the terms of the GNU LGPL. | ||
See the file COPYING.LIB | ||
*/ | ||
|
||
#define FUSE_USE_VERSION 26 | ||
#define _FILE_OFFSET_BITS 64 | ||
|
||
#include <fuse.h> | ||
#include <stdio.h> | ||
|
@@ -36,7 +43,7 @@ static int iconv_convpath(struct iconv *ic, const char *path, char **newpathp, | |
int fromfs) | ||
{ | ||
size_t pathlen = strlen(path); | ||
size_t newpathlen = pathlen; /* FIXME after testing */ | ||
size_t newpathlen = pathlen * 4; | ||
char *newpath = malloc(newpathlen + 1); | ||
size_t plen = newpathlen; | ||
char *p = newpath; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
/* | ||
fuse subdir module: offset paths with a base directory | ||
Copyright (C) 2007 Miklos Szeredi <[email protected]> | ||
This program can be distributed under the terms of the GNU LGPL. | ||
See the file COPYING.LIB | ||
*/ | ||
|
||
#define FUSE_USE_VERSION 26 | ||
#define _FILE_OFFSET_BITS 64 | ||
|
||
#include <fuse.h> | ||
#include <stdio.h> | ||
|