• Bernhard Link's avatar
    do not replace ~ a shell would not · 6860bdce
    Bernhard Link authored
    file_translateTildeInPath currently translates the first ~ it finds.
    This is different from shell which only translates it if it is the
    first character of a word and not if other letters follow.
    
    As file_translateTildeInPath is always called with a single filename,
    only replace it if this string is "~" or starts with "~/".
    
    Additionally add an size argument to the function, so that no string
    buffers can overrun and do not access a NULL pointer if HOME is not set.
    6860bdce
Name
Last commit
Last update
doc Loading commit data...
lib Loading commit data...
m4 Loading commit data...
src Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL.generic Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.I18N Loading commit data...
README.TRANSLATION Loading commit data...
arg-nonnull.h Loading commit data...
bootstrap Loading commit data...
c++defs.h Loading commit data...
configure.ac Loading commit data...
warn-on-use.h Loading commit data...