rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/touch/ @ 260  →  /touch/ @ 261
/touch/touch.c
@@ -642,15 +642,10 @@
if (szPath[strlen (szPath) - 1] == '\"')
szPath[strlen (szPath) - 1] = '\\';
 
if (!Exists (szPath) && !(dwOptions & OPT_RECURSIVE) ) /* create file if not exist */
 
if (!(dwOptions & OPT_RECURSIVE) ) /* file or directory */
{
_fullpath (szFullPath, szPath, LEN_PATH);
fh = CreateFile(szFullPath, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
CloseHandle(fh);
}
if (Exists (szPath) && !(dwOptions & OPT_RECURSIVE) ) /* file or directory */
{
_fullpath (szFullPath, szPath, LEN_PATH);
if ((dwResult = Touch (szFullPath)) != ERROR_SUCCESS)
PrintError (szPath, dwResult);
}