search for: do_mkstemp

Displaying 10 results from an estimated 10 matches for "do_mkstemp".

Did you mean: do_mkdtemp
2004 Apr 11
1
fchmod in do_mkstemp? (patch included)
Why is do_mkstemp fchmod-ing the temporary file? I was not able to figure this out from the CVS logs or my searches in the mail archives. Currently, do_mkstemp does this (*): mkstemp temporary file (which leaves it with 0600) fchmod temporary file (final perm & 0700) And then later it gets re...
2007 Oct 20
2
DO NOT REPLY [Bug 5027] New: Perms in do_mkstemp are not always valid
https://bugzilla.samba.org/show_bug.cgi?id=5027 Summary: Perms in do_mkstemp are not always valid Product: rsync Version: 2.6.9 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: cmadams@hiwaay.net...
2003 Jan 18
1
possible typo/bug in receiver.c
...d/setgid bits to ensure that there is no race condition. They are then correctly updated after the lchown. Thanks to snabb@epipe.fi for pointing this out. We also set it initially without group access because of a similar race condition. */ fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); if (fd2 == -1) { rprintf(FERROR,"mkstemp %s failed: %s\n",fnametmp,strerror(errno)); receive_data(f_in,buf,-1,NULL,file->length); if (buf) unmap_file(buf); if (fd1 !=...
2002 Jun 07
0
problem related to filename length
...tuid/setgid bits to ensure that there is no race + condition. They are then correctly updated after + the lchown. Thanks to snabb@epipe.fi for pointing + this out. We also set it initially without group + access because of a similar race condition. */ + + fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); + }while(!flag && (retry++ < max_retry) && + (fd2 == -1 && errno == EEXIST)); + if(flag) continue; } - - strlcpy(template, fnametmp, sizeof(template)); - - /* we initially set the perms without the - setuid...
2004 Apr 27
1
[PATCH] Inplace option for rsync
...race - * condition. They are then correctly updated after - * the lchown. Thanks to snabb@epipe.fi for pointing - * this out. We also set it initially without group - * access because of a similar race condition. */ - fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); - - /* in most cases parent directories will already exist - * because their information should have been previously - * transferred, but that may not be the case with -R */ - if (fd2 == -1 &am...
2009 Mar 11
0
Odd issue with locked directories and Mac OS X
...== -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 + if (fd == -1) { rsyserr(FERROR_XFER, errno, "mkstemp %s failed", full_fname(fnametmp)); -------------- next part -------------- HTML attachment s...
2008 Jun 04
0
3.0.3pre2 compile warnings under cygwin
...match.c:168: warning: unsigned int format, uint32_t arg (arg 3) match.c:185: warning: unsigned int format, long unsigned int arg (arg 4) match.c:185: warning: unsigned int format, long unsigned int arg (arg 5) match.c:219: warning: unsigned int format, uint32_t arg (arg 5) syscall.c: In function `do_mkstemp': syscall.c:230: warning: implicit declaration of function `setmode' io.c: In function `read_msg_fd': io.c:413: warning: int format, long unsigned int arg (arg 4) token.c: In function `send_deflated_token': token.c:377: warning: int format, int32_t arg (arg 3) token.c:418: warning...
2007 Dec 15
3
DO NOT REPLY [Bug 5147] New: Read-only files that have changed xattrs fail to allow xattr changes
https://bugzilla.samba.org/show_bug.cgi?id=5147 Summary: Read-only files that have changed xattrs fail to allow xattr changes Product: rsync Version: 2.6.9 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org
2003 Feb 05
6
rsync 1tb+ each day
I am rsyncing 1tb of data each day. I am finding in my testing that actually removing the target files each day then rsyncing is faster than doing a compare of the source->target files then rsyncing over the delta blocks. This is because we have a fast link between the two boxes, and that are disk is fairly slow. I am finding that the creation of the temp file (the 'dot file') is
2010 Jun 15
3
about rsyncing of block devices
Hiya, I can see it's a regular subject on this list. I, like others wanted to use rsync to synchronise two block devices (as it happens one lvm volume and one nbd device served by qemu-img on a remote host from a qcow2 disk image so that I can keep the old versions) As I couldn't find any report of it being done successfully, I'm just sharing my findings as it might benefit others.