• Eli Zaretskii's avatar
    Fix compression of directories in Dired · 6cd9ccb0
    Eli Zaretskii authored
    This fixes comporession and uncompression of directories on
    MS-Windows, but also on other systems.  The original code used
    ":" as the REGEXP of the directory entry in
    dired-compress-file-suffixes, which on Windows always matched any
    absolute file name, and can also match unusual file names on Posix
    hosts.  This false match would cause dired-compress-file to act as
    if we are decompressing a directory, but use a command suitable
    for compression, which would fail in interesting ways.
    We now use a REGEXP that can never match any valid file name.
    
    * lisp/dired-aux.el (dired-compress-file-suffixes): Make the
    "compress directory" entry's REGEXP really fail to match any valid
    file name.
    (dired-compress-file): Adapt to the change in
    dired-compress-file-suffixes.  (Bug#39024)
    (dired-compress): If the current file is a directory, or if the
    uncompressed file is a directory, don't remove the original from
    the listing, since it is left in the filesystem.
    6cd9ccb0
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...