[Xconq-cvs] xconq/kernel unix.c, BRANCH_MCAMPO_PATH, 1.1.1.1, 1.1.1.1.8.1
Brought to you by:
elijah_meeks,
matthewskala
From: Eric M. <eri...@us...> - 2007-04-08 18:26:54
|
Update of /cvsroot/xconq/xconq/kernel In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22501/kernel Modified Files: Tag: BRANCH_MCAMPO_PATH unix.c Log Message: Warn if homedir not found on Unix. Index: unix.c =================================================================== RCS file: /cvsroot/xconq/xconq/kernel/unix.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.8.1 diff -C2 -d -r1.1.1.1 -r1.1.1.1.8.1 *** unix.c 21 Nov 2004 03:01:26 -0000 1.1.1.1 --- unix.c 8 Apr 2007 18:26:53 -0000 1.1.1.1.8.1 *************** *** 207,212 **** /* Try to ensure that the directory exists. */ if (access(homedir, F_OK) != 0) { ! mkdir(homedir, 0755); ! /* (should warn of problems) */ } return homedir; --- 207,214 ---- /* Try to ensure that the directory exists. */ if (access(homedir, F_OK) != 0) { ! if (mkdir(homedir, 0755) != 0) { ! /* warn of problems */ ! init_warning("could not create the directory %s", homedir); ! } } return homedir; |