Your message dated Wed, 02 Aug 2017 23:24:33 +0200
with message-id <1501709073.327.28.ca...@debian.org>
and subject line Re: Bug#797849: lftp: Doesn't use ~/.config/lftp/rc as 
documented in man page
has caused the Debian Bug report #797849,
regarding lftp: Doesn't use ~/.config/lftp/rc as documented in man page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
797849: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797849
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: lftp
Version: 4.6.4-1
Severity: normal

I'm attempting to set options in the rc file, but when I put these in
~/.config/lftp/rc they are ignored. If I symlink ~/.config/lftp/rc to
~/.lftprc they are used.

Either remove the documentation of this location from the man page, or make
lftp look in this location.

Long-term, it would be good to move away from using dotfiles outside ~/.config
altogether. However, by default lftp creates ~/.lftp to store bookmarks and
log files.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (500, 'testing-updates'), 
(500, 'testing-proposed-updates'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lftp depends on:
ii  libc6              2.19-19
ii  libgcc1            1:5.1.1-14
ii  libgnutls-deb0-28  3.3.17-1
ii  libidn11           1.32-1
ii  libreadline6       6.3-8+b3
ii  libstdc++6         5.1.1-14
ii  libtinfo5          6.0+20150810-1
ii  netbase            5.3
ii  zlib1g             1:1.2.8.dfsg-2+b1

lftp recommends no packages.

lftp suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
fixed 797849 4.8.0-1
found 797849 4.7.4-1
thanks

Hello Neil,

Am Mittwoch, den 02.09.2015, 17:18 -0600 schrieb Neil Mayhew:
> Package: lftp
> Version: 4.6.4-1

> I'm attempting to set options in the rc file, but when I put these in
> ~/.config/lftp/rc they are ignored. If I symlink ~/.config/lftp/rc to
> ~/.lftprc they are used.
> 
> Either remove the documentation of this location from the man page,
> or make lftp look in this location.

I just checked with strace which files are checked:

$ strace lftp
...
access("/etc/lftp.conf", R_OK)          = 0
access("/home/nk/.lftprc", R_OK)        = -1 ENOENT (No such file or directory)
stat("/home/nk/.lftp", 0x7ffc101f08e0)  = -1 ENOENT (No such file or directory)
mkdir("/home/nk/.config", 0755)         = -1 EEXIST (File exists)
mkdir("/home/nk/.config/lftp", 0755)    = -1 EEXIST (File exists)
access("/home/nk/.config/lftp/rc", R_OK) = -1 ENOENT (No such file or directory)
gettimeofday({tv_sec=1501704688, tv_usec=36723}, NULL) = 0
open("/etc/lftp.conf", O_RDONLY|O_NONBLOCK) = 4
...

And if I set something in .config/lftp/rc it works like expected:

--8<--
$ cat .config/lftp/rc 
set prompt "lftp .config prompt"

$ lftp
lftp .config prompt
--8<--

With lftp 4.7.4 in stretch I can confirm your reported problem:

...
access("/etc/lftp.conf", R_OK)          = 0
access("/home/nk/.lftprc", R_OK)      = -1 ENOENT (No such file or directory)
stat("/home/nk/.lftp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/nk/.lftp/rc", R_OK)     = -1 ENOENT (No such file or directory)
gettimeofday({tv_sec=1501708236, tv_usec=927457}, NULL) = 0
open("/etc/lftp.conf", O_RDONLY|O_NONBLOCK) = 4
...

and setting something in .config/lftp/rc does not work.

> Long-term, it would be good to move away from using dotfiles outside
> ~/.config altogether. However, by default lftp creates ~/.lftp to
> store bookmarks and log files.

This has changed and are now found in .local/share/lftp/

Thanks for your report.

Regards

        Noel

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to