Changeset 989 for vendor/current/source3/modules/vfs_shadow_copy2.c
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/modules/vfs_shadow_copy2.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/modules/vfs_shadow_copy2.c
r988 r989 1793 1793 char *tmp = NULL; 1794 1794 char *result = NULL; 1795 1795 1796 int saved_errno; 1796 1797 size_t rootpath_len = 0; … … 1809 1810 &rootpath_len); 1810 1811 if (tmp == NULL) { 1811 goto done; 1812 if (errno != ENOENT) { 1813 goto done; 1814 } 1815 1816 /* 1817 * If the converted path does not exist, and converting 1818 * the parent yields something that does exist, then 1819 * this path refers to something that has not been 1820 * created yet, relative to the parent path. 1821 * The snapshot finding is relative to the parent. 1822 * (usually snapshots are read/only but this is not 1823 * necessarily true). 1824 * This code also covers getting a wildcard in the 1825 * last component, because this function is called 1826 * prior to sanitizing the path, and in SMB1 we may 1827 * get wildcards in path names. 1828 */ 1829 if (!parent_dirname(talloc_tos(), stripped, &parent_dir, 1830 NULL)) { 1831 errno = ENOMEM; 1832 goto done; 1833 } 1834 1835 tmp = shadow_copy2_do_convert(talloc_tos(), handle, parent_dir, 1836 timestamp, &rootpath_len); 1837 if (tmp == NULL) { 1838 goto done; 1839 } 1812 1840 } 1813 1841 … … 1827 1855 TALLOC_FREE(tmp); 1828 1856 TALLOC_FREE(stripped); 1857 1829 1858 errno = saved_errno; 1830 1859 return result;
Note:
See TracChangeset
for help on using the changeset viewer.
