mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Fix check for space in home dir
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@18642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7950007298
commit
d4ae9b1e98
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-02-23 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* user_home.c (main): Fix check for space in home dir, issue
|
||||
warning if space found (Suggestion from Sheldon Gill).
|
||||
|
||||
Wed Feb 18 16:57:46 2004 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* configure.ac: Removed --enable-import / --disable-import option.
|
||||
|
|
|
@ -204,9 +204,14 @@ int main (int argc, char** argv)
|
|||
|
||||
for (i = 0; i < strlen(home); i++)
|
||||
{
|
||||
if (isspace((int)home[0]))
|
||||
if (isspace((unsigned int)home[i]))
|
||||
{
|
||||
home[0] = '\0'; /* Spaces not permitted! */
|
||||
/*
|
||||
* GNU make doesn't handle spaces in paths.
|
||||
* Broken, wrong and totally unfixable.
|
||||
*/
|
||||
fprintf(stderr, "Make cannot handle spaces in paths so the " \
|
||||
"home directory '%s' may cause problems!\n", home);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue