mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtfile/dtcopy/sharedFuncs: CID 175225
This commit is contained in:
parent
fd5fe65616
commit
8e4b6605bf
1 changed files with 4 additions and 4 deletions
|
@ -550,7 +550,7 @@ CheckDeleteAccess(
|
||||||
char title[200],*msg,*tmpmsg;
|
char title[200],*msg,*tmpmsg;
|
||||||
char *tmpstring = strdup(source_name),*tmpptr;
|
char *tmpstring = strdup(source_name),*tmpptr;
|
||||||
XEvent event;
|
XEvent event;
|
||||||
int perm_status;
|
int perm_status = 0;
|
||||||
|
|
||||||
delay = 10000;
|
delay = 10000;
|
||||||
tmpptr = strrchr(tmpstring,'/');
|
tmpptr = strrchr(tmpstring,'/');
|
||||||
|
@ -567,13 +567,15 @@ CheckDeleteAccess(
|
||||||
}
|
}
|
||||||
perm_status = CopyCheckDeletePermission(tmpptr,source_name);
|
perm_status = CopyCheckDeletePermission(tmpptr,source_name);
|
||||||
free(tmpstring);
|
free(tmpstring);
|
||||||
|
tmpstring = NULL;
|
||||||
}
|
}
|
||||||
if(!perm_status) /* Everything is fine just return */
|
if(!perm_status) /* Everything is fine just return */
|
||||||
{
|
{
|
||||||
free(tmpstring);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(tmpstring);
|
||||||
|
|
||||||
strcpy(title,GETMESSAGE(4,7,"Object Trash - Error"));
|
strcpy(title,GETMESSAGE(4,7,"Object Trash - Error"));
|
||||||
tmpmsg = GETMESSAGE(4,8,"You do not have permission to put the object \n\n%s\n\ninto trash.\n\nUse the Change Permissions choice from the object's\npopup menu or from the Selected menu to turn on your\nRead permission on the object.\n\nNote: If this object is a folder, you must also have\nRead permission for each of the objects inside the\nfolder before you can put the folder in the trash.");
|
tmpmsg = GETMESSAGE(4,8,"You do not have permission to put the object \n\n%s\n\ninto trash.\n\nUse the Change Permissions choice from the object's\npopup menu or from the Selected menu to turn on your\nRead permission on the object.\n\nNote: If this object is a folder, you must also have\nRead permission for each of the objects inside the\nfolder before you can put the folder in the trash.");
|
||||||
|
|
||||||
|
@ -592,8 +594,6 @@ CheckDeleteAccess(
|
||||||
XtAppNextEvent(app_context, &event);
|
XtAppNextEvent(app_context, &event);
|
||||||
XtDispatchEvent(&event);
|
XtDispatchEvent(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(tmpstring);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue