Re: Deleting a directory with the same name as a shortcut deletes everything in CWD

2022-08-09 Thread Ken Brown
On 8/9/2022 4:01 PM, Oskar Skog wrote: On 2022-08-09 22:52, Ken Brown wrote: I think the best fix is to set res = 0 at the beginning of the loop and to remove a "res = -1" that occurs later.  I've sent a patch to cygwin-patches. Ken From https://cygwin.com/pipermail/cygwin-patches/2022q3/0

Re: Deleting a directory with the same name as a shortcut deletes everything in CWD

2022-08-09 Thread Oskar Skog
On 2022-08-09 22:52, Ken Brown wrote: I think the best fix is to set res = 0 at the beginning of the loop and to remove a "res = -1" that occurs later.  I've sent a patch to cygwin-patches. Ken From https://cygwin.com/pipermail/cygwin-patches/2022q3/011994.html > Currently it is possible fo

Re: Deleting a directory with the same name as a shortcut deletes everything in CWD

2022-08-09 Thread Ken Brown
On 8/8/2022 7:29 PM, Ken Brown wrote: On 8/8/2022 7:56 AM, Christian Franke wrote: Testcase: $ ls -a .  .. $ touch link.lnk file.txt $ ls -a .  ..  file.txt  link.lnk $ stat -c %F link.lnk regular empty file $ stat -c %F link directory This happens because symlink_info::check returns -1 i

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
Lee wrote: On 8/9/22, Christian Franke wrote: Brian Inglis wrote: I've been running with /etc/resolv.conf for a few years now, generated from the ISP info from ipconfig and lists of public DNS servers and suffixes. The attached postinstall script 0p_l_etc_resolv_conf.dash generates a new resol

Re: resolv.conf and gnupg2

2022-08-09 Thread Lee
On 8/9/22, Christian Franke wrote: > Brian Inglis wrote: >> I've been running with /etc/resolv.conf for a few years now, generated >> from the ISP info from ipconfig and lists of public DNS servers and >> suffixes. >> >> The attached postinstall script 0p_l_etc_resolv_conf.dash generates a >> new r

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
Brian Inglis wrote: I've been running with /etc/resolv.conf for a few years now, generated from the ISP info from ipconfig and lists of public DNS servers and suffixes. The attached postinstall script 0p_l_etc_resolv_conf.dash generates a new resolv.conf and replaces the current if different