Changeset 221 for branches/samba-3.3.x/source/libsmb/libsmb_dir.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/libsmb/libsmb_dir.c
r206 r221 1502 1502 char *password = NULL; 1503 1503 char *workgroup = NULL; 1504 char *targetpath = NULL; 1505 struct cli_state *targetcli = NULL; 1504 1506 char *path = NULL; 1505 1507 uint16 mode; … … 1519 1521 } 1520 1522 1521 DEBUG(4, ("smbc_chmod(%s, 0%3o)\n", fname, newmode));1523 DEBUG(4, ("smbc_chmod(%s, 0%3o)\n", fname, (unsigned int)newmode)); 1522 1524 1523 1525 if (SMBC_parse_path(frame, … … 1552 1554 return -1; /* errno set by SMBC_server */ 1553 1555 } 1556 1557 /*d_printf(">>>unlink: resolving %s\n", path);*/ 1558 if (!cli_resolve_path(frame, "", srv->cli, path, 1559 &targetcli, &targetpath)) { 1560 d_printf("Could not resolve %s\n", path); 1561 TALLOC_FREE(frame); 1562 return -1; 1563 } 1554 1564 1555 1565 mode = 0; … … 1560 1570 if ((newmode & S_IXOTH) && lp_map_hidden(-1)) mode |= aHIDDEN; 1561 1571 1562 if (!cli_setatr( srv->cli,path, mode, 0)) {1563 errno = SMBC_errno(context, srv->cli);1572 if (!cli_setatr(targetcli, targetpath, mode, 0)) { 1573 errno = SMBC_errno(context, targetcli); 1564 1574 TALLOC_FREE(frame); 1565 1575 return -1; … … 1902 1912 } 1903 1913 1914 /* set the credentials to make DFS work */ 1915 smbc_set_credentials_with_fallback(ocontext, 1916 workgroup, 1917 user1, 1918 password1); 1919 1904 1920 /*d_printf(">>>rename: resolving %s\n", path1);*/ 1905 1921 if (!cli_resolve_path(frame, "", srv->cli, path1, … … 1909 1925 return -1; 1910 1926 } 1927 1928 /* set the credentials to make DFS work */ 1929 smbc_set_credentials_with_fallback(ncontext, 1930 workgroup, 1931 user2, 1932 password2); 1933 1911 1934 /*d_printf(">>>rename: resolved path as %s\n", targetpath1);*/ 1912 1935 /*d_printf(">>>rename: resolving %s\n", path2);*/
Note:
See TracChangeset
for help on using the changeset viewer.