[Bug 8246] New: rsync hangs with --hard-links and unreadable files

samba-bugs at samba.org samba-bugs at samba.org
Sun Jun 19 10:20:59 MDT 2011


https://bugzilla.samba.org/show_bug.cgi?id=8246

           Summary: rsync hangs with --hard-links and unreadable files
           Product: rsync
           Version: 3.0.7
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: cgdennis at btinternet.com
         QAContact: rsync-qa at samba.org


I've stumbled across a fairly obscure situation in which rsync hangs -- it just
waits until I press ctrl-C.

Here's a transcript.  Note that directory 'foo' contains two small files that
are hard-linked together, and have no read permission.  

----------------------------------------------------------------------
$ uname -a
Linux ferox 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18 20:43:15 UTC 2011
i686 GNU/Linux
$ rsync --version
rsync  version 3.0.7  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, xattrs, iconv, symtimes

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
$ ls -dl foo
drwxr-xr-x 2 chris chris 4096 2011-06-09 23:23 foo
$ ls -il foo
total 8
15958048 --w------- 2 chris chris 193 2011-05-25 19:19 bd
15958048 --w------- 2 chris chris 193 2011-05-25 19:19 bd2
$ rsync -avv --hard-links foo /tmp
sending incremental file list
delta-transmission disabled for local transfer or --whole-file
rsync: send_files failed to open
"/home/chris/Dropbox/perlwork/brandysnap/foo/bd2": Permission denied (13)
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(543)
[sender=3.0.7]
---------------------------------------------------------------------- 

The hang doesn't happen if --hard-links is not specified, or the files have
read permission.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list