X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=usystem.c;h=a0515238e1d45202fc24f89de0d8eb33ad0e0eef;hb=c5e79d2e39fbafdeb7fac07906891d33b7a5363a;hp=275d73916c2011778ee8349b3e92122a37550c09;hpb=daf0fb324ca20ca54b49b1604dbc3d4ecf9ecf85;p=xboard.git diff --git a/usystem.c b/usystem.c index 275d739..a051523 100644 --- a/usystem.c +++ b/usystem.c @@ -358,6 +358,9 @@ ExpandPathName (char *path) } if (*s == '~') { + if(s[1] == '~') { // use ~~ for XBoard's private data directory + snprintf(d, 4*MSG_SIZ, DATADIR "%s", s+2); + } else if (*(s+1) == '/') { safeStrCpy(d, getpwuid(getuid())->pw_dir, 4*MSG_SIZ ); strcat(d, s+1);