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

X-Loop: owner@bugs.devuan.org
Subject: bug#667: rsync: fails to honour a tilde (~) in --log-file option
Reply-To: Dave <rsync-bug-2c04@wsfd.ath.cx>, 667@bugs.devuan.org
Resent-From: Dave <rsync-bug-2c04@wsfd.ath.cx>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: rsync-bug-2c04-CC@wsfd.ath.cx, devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Fri, 04 Mar 2022 22:58:02 +0000
Resent-Message-ID: <handler.667.B.1646434632840@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 667
X-Devuan-PR-Package: rsync
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.1646434632840
          (code B); Fri, 04 Mar 2022 22:58:02 +0000
Received: (at submit) by bugs.devuan.org; 4 Mar 2022 22:57:12 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Fri, 04 Mar 2022 22:57:12 +0000 (UTC)
Received: from mout.perfora.net (mout.perfora.net [74.208.4.196])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id D504266135F
	for <submit@bugs.devuan.org>; Fri,  4 Mar 2022 23:56:00 +0100 (CET)
Authentication-Results: mail.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=elscof.net header.i=@elscof.net header.b="UZu6hfja";
	dkim-atps=neutral
Received: from elscof.net ([98.229.127.25]) by mrelay.perfora.net (mreueus003
 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LwsL0-1oEo2m0T28-016Nmd; Fri, 04 Mar
 2022 23:55:56 +0100
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=elscof.net;
	 s=dkim13c5; h=Message-Id:Date:Subject:Cc:To:From:Content-Transfer-Encoding:
	MIME-Version:Content-Type:Sender:Reply-To:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
	List-Post:List-Owner:List-Archive;
	bh=1HhFY2hicV6PQGJh3TqBpm5P/CmmeT6YApuHwp0BXSI=; b=UZu6hfja8x03y3PocbNg6ZX2Bf
	fou7XDy84lkRh0MI1IghdX+KImj3OESRi3slT2lLNQfBIBqACuBfYhQhSxJaVHGXoLM0UpTiISbk3
	kedDeKD/xoaZBfUdTWjBBdy6k85FelI54vMuJWS8hp+7DGDVtVDEZB38dIf+VNGtva6s=;
Received: from dhcp-68.homenet ([192.168.99.68]:34162 helo=defau-lt43.homenet) 
	by elscof.net using smtp with id 1nQGq0-0007zt-Mr ; Fri, 04 Mar 2022 17:55:53 -0500
Received: (nullmailer pid 25227 invoked by uid 1000);
	Fri, 04 Mar 2022 22:55:52 -0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
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>
Date: Fri, 04 Mar 2022 17:55:52 -0500
Message-Id: <1646434552.553901.25226.nullmailer@defau-lt43.homenet>
X-elscof-al: X495X accept +local_hosts
X-elscof: noloop r_adkim 1nQGq0-0007zt-Mr 2145 67 p587_oao
X-Provags-ID: V03:K1:m1lKlVhpr3y1fk7ZJk5O+R8ZGYhg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ALID,
	RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org
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:07:41 2024;