Subversion Repositories Kolibri OS

Rev

Rev 6822 | Rev 6857 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6822 Rev 6826
Line 1... Line 1...
1
int cmd_rmdir(char dir[])
1
int cmd_rmdir(char dir[])
2
{
2
{
Line 3... Line 3...
3
 
3
 
4
char		temp[256];
4
char		temp[FILENAME_MAX];
5
kol_struct70	k70;
5
kol_struct70	k70;
Line 6... Line 6...
6
unsigned	result;
6
unsigned	result;
7
 
7
 
Line 31... Line 31...
31
	k70.p21 = dir;
31
	k70.p21 = dir;
32
else
32
else
33
	{
33
	{
34
	strcpy(temp, cur_dir);
34
	strcpy(temp, cur_dir);
35
	strcat(temp, dir);
35
	if (temp[strlen(temp)-1] != '/') 
-
 
36
		strcat(temp, "/"); // add slash
-
 
37
	strcat(temp, dir);
36
	k70.p21 = temp;
38
	k70.p21 = temp;
37
	}
39
	}
38
 
40
 
Line 39... Line 41...
39
if ( !dir_check(temp) )
41
if ( !dir_check(temp) )