Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/modules/vfs_shadow_copy2.c

    r988 r989  
    17931793        char *tmp = NULL;
    17941794        char *result = NULL;
     1795
    17951796        int saved_errno;
    17961797        size_t rootpath_len = 0;
     
    18091810                                      &rootpath_len);
    18101811        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                }
    18121840        }
    18131841
     
    18271855        TALLOC_FREE(tmp);
    18281856        TALLOC_FREE(stripped);
     1857
    18291858        errno = saved_errno;
    18301859        return result;
Note: See TracChangeset for help on using the changeset viewer.