Changeset 232 for branches/samba-3.2.x/source/smbd/close.c
- Timestamp:
- May 27, 2009, 9:09:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/close.c
r228 r232 68 68 } 69 69 70 chmod(fsp->fsp_name,0755); 71 ret = smbrun(fsp->fsp_name,&tmp_fd); 70 /* Ensure we don't depend on user's PATH. */ 71 p = talloc_asprintf(ctx, "./%s", fsp->fsp_name); 72 if (!p) { 73 TALLOC_FREE(ctx); 74 return; 75 } 76 77 if (chmod(fsp->fsp_name,0755) == -1) { 78 TALLOC_FREE(ctx); 79 return; 80 } 81 ret = smbrun(p,&tmp_fd); 72 82 DEBUG(3,("Invoking magic command %s gave %d\n", 73 fsp->fsp_name,ret));83 p,ret)); 74 84 75 85 unlink(fsp->fsp_name);
Note:
See TracChangeset
for help on using the changeset viewer.