struct fuse2fs *ff = (struct fuse2fs *)ctxt->private_data;
ext2_filsys fs;
ext2_ino_t parent, child;
- char *temp_path = strdup(path);
+ char *temp_path;
errcode_t err;
char *node_name, a;
int filetype;
fs = ff->fs;
dbg_printf("%s: path=%s mode=0%o dev=0x%x\n", __func__, path, mode,
(unsigned int)dev);
+ temp_path = strdup(path);
if (!temp_path) {
ret = -ENOMEM;
goto out;
struct fuse2fs *ff = (struct fuse2fs *)ctxt->private_data;
ext2_filsys fs;
ext2_ino_t parent, child;
- char *temp_path = strdup(path);
+ char *temp_path;
errcode_t err;
char *node_name, a;
struct ext2_inode_large inode;
FUSE2FS_CHECK_CONTEXT(ff);
fs = ff->fs;
dbg_printf("%s: path=%s mode=0%o\n", __func__, path, mode);
+ temp_path = strdup(path);
if (!temp_path) {
ret = -ENOMEM;
goto out;
struct fuse2fs *ff = (struct fuse2fs *)ctxt->private_data;
ext2_filsys fs;
ext2_ino_t parent, child;
- char *temp_path = strdup(dest);
+ char *temp_path;
errcode_t err;
char *node_name, a;
struct ext2_inode_large inode;
FUSE2FS_CHECK_CONTEXT(ff);
fs = ff->fs;
dbg_printf("%s: symlink %s to %s\n", __func__, src, dest);
+ temp_path = strdup(dest);
if (!temp_path) {
ret = -ENOMEM;
goto out;
struct fuse_context *ctxt = fuse_get_context();
struct fuse2fs *ff = (struct fuse2fs *)ctxt->private_data;
ext2_filsys fs;
- char *temp_path = strdup(dest);
+ char *temp_path;
errcode_t err;
char *node_name, a;
ext2_ino_t parent, ino;
FUSE2FS_CHECK_CONTEXT(ff);
fs = ff->fs;
dbg_printf("%s: src=%s dest=%s\n", __func__, src, dest);
+ temp_path = strdup(dest);
if (!temp_path) {
ret = -ENOMEM;
goto out;
ret = check_inum_access(fs, ino, R_OK);
if (ret)
- goto out2;
+ goto out;
err = ext2fs_xattrs_open(fs, ino, &h);
if (err) {
struct fuse2fs *ff = (struct fuse2fs *)ctxt->private_data;
ext2_filsys fs;
ext2_ino_t parent, child;
- char *temp_path = strdup(path);
+ char *temp_path;
errcode_t err;
char *node_name, a;
int filetype;
FUSE2FS_CHECK_CONTEXT(ff);
fs = ff->fs;
dbg_printf("%s: path=%s mode=0%o\n", __func__, path, mode);
+ temp_path = strdup(path);
if (!temp_path) {
ret = -ENOMEM;
goto out;
break;
case EXT2_ET_DIR_NO_SPACE:
is_err = 1;
+ /* fallthrough */
case EXT2_ET_TOOSMALL:
case EXT2_ET_BLOCK_ALLOC_FAIL:
case EXT2_ET_INODE_ALLOC_FAIL:
if (ino)
fprintf(ff->err_fp, "FUSE2FS (%s): %s (inode #%d) at %s:%d.\n",
- fs && fs->device_name ? fs->device_name : "???",
+ fs->device_name ? fs->device_name : "???",
error_message(err), ino, file, line);
else
fprintf(ff->err_fp, "FUSE2FS (%s): %s at %s:%d.\n",
- fs && fs->device_name ? fs->device_name : "???",
+ fs->device_name ? fs->device_name : "???",
error_message(err), file, line);
fflush(ff->err_fp);