Displaying 20 results from an estimated 50 matches for "full_fname".
2024 Jun 10
2
4.20: case (in)sensitive is broken
...ules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c
index c5b5084e108..f3c9f0e359c 100644
--- a/source3/modules/vfs_widelinks.c
+++ b/source3/modules/vfs_widelinks.c
@@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle,
}
lstat_ret = SMB_VFS_NEXT_LSTAT(handle,
full_fname);
- if (lstat_ret != -1 &&
- VALID_STAT(full_fname->st) &&
+ if (lstat_ret == -1) {
+ /* Can't be a DFS link. */
+ int saved_errno = errno;
+ TALLOC_FREE(full_fname);
+ errno = saved_errno;
+ return -1;
+ }
+ if (VALID_STAT(full_fname->st) &&...
2011 Apr 15
4
[Bug 8090] New: full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090
Summary: full_fname out of memory error on missing file SunOS
5.8
Product: rsync
Version: 3.0.7
Platform: Sparc
OS/Version: SunOS
Status: NEW
Severity: minor
Priority: P5
Component: core
AssignedTo: wayned at s...
2024 Jun 11
1
4.20: case (in)sensitive is broken
...index c5b5084e108..f3c9f0e359c 100644
> --- a/source3/modules/vfs_widelinks.c
> +++ b/source3/modules/vfs_widelinks.c
> @@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle,
> ???????? }
> ???????? lstat_ret = SMB_VFS_NEXT_LSTAT(handle,
> ???????????????? full_fname);
> -??????? if (lstat_ret != -1 &&
> -??????????? VALID_STAT(full_fname->st) &&
> +??????? if (lstat_ret == -1) {
> +??????????? /* Can't be a DFS link. */
> +??????????? int saved_errno = errno;
> +??????????? TALLOC_FREE(full_fname);
> +??????????? err...
2024 Jun 07
1
4.20: case (in)sensitive is broken
07.06.2024 20:52, Jeremy Allison wrote:
> Fair enough. Can you post a minimal smb.conf and directory
> setup that reproduces the problem and how to demo it with smbclient
> command lines please ? I know I'm asking to be spoon-fed but my time for
> Samba these days is quite limited and this would aid immensely
> in creating a properly tested fix.
You're not asking to be
2004 Feb 17
1
[patch] Make robust_rename() handle EXDEV.
...if (robust_rename(fnametmp,fname) != 0) {
- if (errno == EXDEV) {
- /* rename failed on cross-filesystem link.
- Copy the file instead. */
- if (copy_file(fnametmp,fname, file->mode & INITACCESSPERMS)) {
- rprintf(FERROR, "copy %s -> \"%s\": %s\n",
- full_fname(fnametmp), fname,
- strerror(errno));
- } else {
- set_perms(fname,file,NULL,0);
- }
- } else {
- rprintf(FERROR,"rename %s -> \"%s\": %s\n",
- full_fname(fnametmp), fname, strerror(errno));
- }
- do_unlink(fnametmp);
+ rprintf(FERROR,"rename %s ->...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...lse {
+ first = 1;
+ asprintf(&linkname, "%s/%ld", hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(4) linkname = %s\n", linkname);
+ }
+ }
+ }
+
+ if (!first) {
+ rprintf(FINFO, "link-by-hash (existing): \"%s\" -> %s\n",
+ linkname, full_fname(fname));
+ rc = do_link(linkname, fname);
+ if (rc == -1) {
+ if (errno == EMLINK) {
+ first = 1;
+ free(linkname);
+ asprintf(&linkname,"%s/%ld",hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(5) linkname = %s\n", linkname);
+ rprintf(FINFO,"link...
2004 Apr 27
1
[PATCH] Inplace option for rsync
...000000000 +1100
+++ rsync-inplace/receiver.c 2004-04-22 09:16:47.000000000 +1000
@@ -45,6 +45,7 @@
extern int module_id;
extern int ignore_errors;
extern int orig_umask;
+extern int inplace;
static void delete_one(char *fn, int is_dir)
{
@@ -226,6 +227,7 @@
full_fname(fname), strerror(errno));
exit_cleanup(RERR_FILEIO);
}
+
offset += i;
continue;
}
@@ -249,16 +251,28 @@
sum_update(map,len);
}
- if (fd != -1 && write_...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...+ linkname = strdup(hashfile->name);
+ kill_hashfile(hashfile);
+ } else {
+ first = 1;
+ asprintf(&linkname, "%s/%ld", hashname,
+ last_fnbr + 1);
+ }
+ }
+ }
+
+ if (first) {
+ rprintf(FINFO, "link-by-hash (new): %s -> \"%s\"\n",
+ full_fname(fname),linkname);
+ if (do_link(fname, linkname) == -1) {
+ rprintf(FERROR,"link \"%s\" -> \"%s\": %s\n",
+ full_fname(fname),linkname,
+ strerror(errno));
+ }
+ } else {
+ rprintf(FINFO, "link-by-hash (existing): \"%s\" -> %s\n",
+...
2020 May 08
0
courier-dovecot-migrate.pl and courier-5: UTF-8 flag
...if ( $pop3_hdr =~ /^\/[23] (\d+) (\d+)$/ ) {
# /2 <next uid> <uidvalidity>
+ # /3 <next uid> <uidvalidity>
$_ = <$f>;
}
elsif ( $pop3_hdr =~ /^\/1 (\d+)$/ ) {
@@ -193,9 +194,13 @@
chomp $_;
$line++;
- my ( $full_fname, $fsize, $uid, $uidv );
+ my ( $full_fname, $fsize, $uid, $uidv, $_is_utf8 );
- if ( /^([^ ]+) (\d+) (\d+):(\d+)$/ ) {
+ if ( /^([^ ]+) (\d+) (\d+):(\d+):(\d+)$/ ) {
+ # v3
+ ( $full_fname, $fsize, $uid, $uidv, $_is_utf8 ) = ( $1, $2, $3, $4, $5...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...lse {
+ first = 1;
+ asprintf(&linkname, "%s/%ld", hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(4) linkname = %s\n", linkname);
+ }
+ }
+ }
+
+ if (!first) {
+ rprintf(FINFO, "link-by-hash (existing): \"%s\" -> %s\n",
+ linkname, full_fname(fname));
+ rc = do_link(linkname, fname);
+ if (rc == -1) {
+ if (errno == EMLINK) {
+ first = 1;
+ free(linkname);
+ asprintf(&linkname,"%s/%ld",hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(5) linkname = %s\n", linkname);
+ rprintf(FINFO,"link...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...lse {
+ first = 1;
+ asprintf(&linkname, "%s/%ld", hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(4) linkname = %s\n", linkname);
+ }
+ }
+ }
+
+ if (!first) {
+ rprintf(FINFO, "link-by-hash (existing): \"%s\" -> %s\n",
+ linkname, full_fname(fname));
+ rc = do_link(linkname, fname);
+ if (rc == -1) {
+ if (errno == EMLINK) {
+ first = 1;
+ free(linkname);
+ asprintf(&linkname,"%s/%ld",hashname,
+ last_fnbr + 1);
+ rprintf(FINFO, "(5) linkname = %s\n", linkname);
+ rprintf(FINFO,"link...
2007 Sep 22
0
rsync build on IA64 using icc
...file
extern struct stats stats;
^
rsync.c(52): remark #1419: external declaration in primary source file
extern struct chmod_mode_struct *daemon_chmod_modes;
^
rsync.c(139): remark #981: operands are evaluated in unspecified order
full_fname(fname));
^
rsync.c(138): remark #981: operands are evaluated in unspecified order
rsyserr(FERROR, errno, "stat %s failed",
^
rsync.c(158): remark #981: operands are evaluated in unspecified order
full_fname(fname));
^
rsync.c(157): remark #981: operands are...
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...int preserve_perms;
extern int delete_after;
extern int orig_umask;
+ extern char *link_by_hash_dir;
struct stats initial_stats;
if (verbose > 2) {
@@ -416,7 +427,7 @@
if (fd1 != -1 && do_fstat(fd1,&st) != 0) {
rprintf(FERROR, "fstat %s failed: %s\n",
full_fname(fnamecmp), strerror(errno));
- receive_data(f_in,NULL,-1,NULL,file->length);
+ receive_data(f_in,NULL,-1,NULL,file->length,NULL);
close(fd1);
continue;
}
@@ -429,7 +440,7 @@
*/
rprintf(FERROR,"recv_files: %s is a directory\n",
full_fname(fnamecmp));
-...
2004 Jan 19
1
File that "vanish"es between readdir and stat is not IO error
Using rsync 2.6.0 with --verbose and doing a pull.
>?receiving file list ... readlink "{FILENAME}" failed:
>?No such file or directory
>?done
>?IO error encountered - skipping file deletion
The file was a temporary file that was being deleted just as
the rsync was run. So while the file list was being built,
it was there when the directory was read but had vanished
by the
2007 Apr 03
0
Modifications to NOT recursively make_backup
...if (do_mkdir(buf, file->mode) < 0
! && (errno != ENOENT || make_bak_dir(buf) < 0
! || do_mkdir(buf, file->mode) < 0)) {
! rsyserr(FINFO, errno, "mkdir %s failed",
! full_fname(buf));
}
- ret_code = do_rmdir(fname);
- if (verbose > 2) {
- rprintf(FINFO, "make_backup: RMDIR %s returns
%i\n",
- full_fname(fname), ret_code);
- }
kept...
2008 Oct 09
1
DO NOT REPLY [Bug 5820] New: rsync does not replace symlink atomically
...etmp))
+ goto cleanup;
+ if (do_symlink(sl, fnametmp) != 0) {
+ rsyserr(FERROR_XFER, errno, "symlink %s
-> \"%s\" failed",
+ full_fname(fnametmp), sl);
+ goto cleanup;
+ }
+ set_file_attrs(fnametmp, file, NULL, NULL, 0);
+ if (do_rename(fnametmp, fname) != 0) {
+ rsyse...
2010 Nov 09
5
Changes made to main.c on implementing real time Rsync
...e)) {
pFound = pFound + 1;
continue;
}
}
if( mkdir_defmode( parentFolder ) != 0 )
{
rsyserr(FERROR, errno, "mkdir recursive parent
folder %s for child folder %s failed",
full_fname(parentFolder),
full_fname(dest_path));
exit_cleanup(RERR_FILEIO);
}
pFound = pFound + 1;
}
if( mkdir_defmode( dest_path ) != 0 )
{
rsyserr(FERROR, errno, "mkdir %s failed",
full_f...
2009 Mar 11
0
Odd issue with locked directories and Mac OS X
...change;
extern int basis_dir_cnt;
extern int make_backups;
extern int cleanup_got_literal;
@@ -153,6 +157,20 @@
}
#endif
+#ifdef SUPPORT_FORCE_CHANGE
+ if (fd == -1) {
+ stat_x sx;
+ if (do_stat(file->dirname, &sx.st) < 0)
+ rprintf(FINFO, "Failed to stat %s!\n", full_fname(file->dirname));
+ else {
+ if (force_change && make_mutable(file->dirname, sx.st.st_mode,
sx.st.st_flags, force_change) > 0) {
+ fd = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS);
+ undo_make_mutable(file->dirname, sx.st.st_flags);
+ }
+ }
+ }
+#endif...
2009 Mar 11
0
rsyserr is occasionally dropping receiver messages
...receiver.c 2008-11-15 16:49:28.000000000 -0600
+++ rsync-3.0.5/receiver.c 2009-03-10 22:18:20.000000000 -0500
@@ -297,6 +315,16 @@
if (fd != -1 && offset > 0 && sparse_end(fd) != 0) {
report_write_error:
+ fprintf(stderr, "rsync: write failed on %s: %s\n",
full_fname(fname), strerror(errno));
rsyserr(FERROR_XFER, errno, "write failed on %s",
full_fname(fname));
exit_cleanup(RERR_FILEIO);
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
..._struct *mapbuf;
@@ -285,10 +287,14 @@
goto report_write_error;
#ifdef HAVE_FTRUNCATE
- if (inplace && fd != -1
- && ftruncate(fd, offset) < 0) {
- rsyserr(FERROR_XFER, errno, "ftruncate failed on %s",
- full_fname(fname));
+ (void)do_fstat(fd,&st);
+ /* Makes no sense to attempt to ftruncate() a block device: */
+ if (!(IS_DEVICE(st.st_mode))) {
+ if (inplace && fd != -1
+ && ftruncate(fd, offset) < 0) {
+ rsyserr(...