Ignore:
Timestamp:
May 13, 2014, 11:39:04 AM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update trunk to 3.6.23

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/lib/system.c

    r751 r862  
    888888
    889889/*******************************************************************
    890  An fdopendir wrapper that will deal with 64 bit filesizes.
    891  Ugly hack - we need dirfd for this to work correctly in the
    892  calling code.. JRA.
     890 An fdopendir wrapper.
    893891********************************************************************/
    894892
    895893SMB_STRUCT_DIR *sys_fdopendir(int fd)
    896894{
    897 #if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_FDOPENDIR64) && defined(HAVE_DIRFD)
     895#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_FDOPENDIR64)
    898896        return fdopendir64(fd);
    899 #elif defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD)
     897#elif defined(HAVE_FDOPENDIR)
    900898        return fdopendir(fd);
    901899#else
     
    18151813        /* Iterate through extattr(2) namespaces */
    18161814        for(t = 0; t < (sizeof(extattr)/sizeof(extattr[0])); t++) {
     1815                if (t != EXTATTR_NAMESPACE_USER && geteuid() != 0) {
     1816                        /* ignore all but user namespace when we are not root, see bug 10247 */
     1817                        continue;
     1818                }
    18171819                switch(type) {
    18181820#if defined(HAVE_EXTATTR_LIST_FILE)
Note: See TracChangeset for help on using the changeset viewer.