diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 8409e573a..670e6605c 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -747,7 +747,7 @@ remglob(char **argv, int doswitch) return (cp); } if (ftemp == NULL) { - strcpy(temp, _PATH_TMP); + strcpy(temp, _PATH_TMP_XXX); mktemp(temp); oldverbose = verbose, verbose = 0; oldhash = hash, hash = 0; diff --git a/appl/ftp/ftp/pathnames.h b/appl/ftp/ftp/pathnames.h index 9f5320596..f7c1fb391 100644 --- a/appl/ftp/ftp/pathnames.h +++ b/appl/ftp/ftp/pathnames.h @@ -37,8 +37,7 @@ #include #endif -#undef _PATH_TMP -#define _PATH_TMP "/tmp/ftpXXXXXX" +#define _PATH_TMP_XXX "/tmp/ftpXXXXXX" #ifndef _PATH_BSHELL #define _PATH_BSHELL "/bin/sh"