Devuan bug report logs - #667
rsync: fails to honour a tilde (~) in --log-file option

version graph

Package: rsync; Maintainer for rsync is (unknown); Source for rsync is src:rsync.

Reported by: Dave <rsync-bug-2c04@wsfd.ath.cx>

Date: Fri, 4 Mar 2022 22:58:02 UTC

Severity: normal

Found in version 3.1.3-6

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: Dave <rsync-bug-2c04@wsfd.ath.cx>
Subject: bug#667 closed by Mark Hindley <mark@hindley.org.uk> (Re:
 bug#667: rsync: fails to honour a tilde (~) in --log-file option)
Message-ID: <handler.667.D667.16763633292093.notifdone@bugs.devuan.org>
References: <Y+tGAe0Pw/TuALqu@hindley.org.uk>
 <1646434552.553901.25226.nullmailer@defau-lt43.homenet>
X-Devuan-PR-Message: they-closed 667
X-Devuan-PR-Package: rsync
Reply-To: 667@bugs.devuan.org
Date: Tue, 14 Feb 2023 08:30:05 +0000
Content-Type: multipart/mixed; boundary="----------=_1676363405-2106-1"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the rsync package:

#667: rsync: fails to honour a tilde (~) in --log-file option

It has been closed by Mark Hindley <mark@hindley.org.uk>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <mark@hindley.org.uk> by
replying to this email.


-- 
667: https://bugs.devuan.org/cgi/bugreport.cgi?bug=667
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mark Hindley <mark@hindley.org.uk>
To: Dave <rsync-bug-2c04@wsfd.ath.cx>, 667-done@bugs.devuan.org
Subject: Re: bug#667: rsync: fails to honour a tilde (~) in --log-file option
Date: Tue, 14 Feb 2023 08:27:45 +0000
Closing as this is a user shell quoting issue: tilde expansion is performed by
the shell not rsync.

Mark
[Message part 3 (message/rfc822, inline)]
From: Dave <rsync-bug-2c04@wsfd.ath.cx>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Cc: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: rsync: fails to honour a tilde (~) in --log-file option
Date: Fri, 04 Mar 2022 17:55:52 -0500
Package: rsync
Version: 3.1.3-6
Severity: normal

Dear Maintainer,

   * What led up to the situation?
Normal rsync local system directory copying/archiving using the '--log-file' option

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. Executing "rsync -a --verbose --log-file=~/xx/mylog ~/xxxx ~/xx"
Resulted in:
 rsync: failed to open log-file ~/xx/mylog: No such file or directory (2)
 Ignoring "log file" setting.
 sending incremental file list
 xxxx/
 xxxx/20211230171244.mkv
...snip normal output...
 xxxx/xx/20220212123456-mask2.xcf

 sent 2,687,537 bytes  received 222 bytes  5,375,518.00 bytes/sec
 total size is 2,686,183  speedup is 1.00

Note the error output and 'Ignoring "log file" setting.' line when the --logfile option contained a tilde: '--log-file=~/xx/mylog'
Also note that the source and destination directories do contain the tilde (~).
No log file was produced anywhere on the local system. (The directory archive was successful.)

2. Executing "rsync -a --verbose --log-file=xx/mylog ~/xxxx ~/xx" (relative directory)
or with '--log-file=/home/myid/xx/mylog' (fully qualified path) resulted in the expected logging operation. 


If the tilde is honoured in the arguments, shouldn't it also be honoured in the options?


Thanx.

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-14-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages rsync depends on:
ii  base-files           10.3+devuan3.5
ii  init-system-helpers  1.56+nmu1+devuan3
ii  libacl1              2.2.53-4
ii  libattr1             1:2.4.48-4
ii  libc6                2.28-10
ii  libpopt0             1.16-12
ii  lsb-base             10.2019051400

rsync recommends no packages.

Versions of packages rsync suggests:
ii  openssh-client  1:7.9p1-10+deb10u2
ii  openssh-server  1:7.9p1-10+deb10u2

-- no debconf information

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 16:05:52 2024;